mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00

Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
20 lines
360 B
Ruby
20 lines
360 B
Ruby
require 'fog/core/model'
|
|
|
|
module Fog
|
|
module Account
|
|
class StormOnDemand
|
|
class Token < Fog::Model
|
|
attribute :token
|
|
attribute :expires
|
|
|
|
def initialize(attributes={})
|
|
super
|
|
end
|
|
|
|
def expire
|
|
service.expire_token.body['expired'].to_i == 1 ? true : false
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|