module ConohaApi::Authentication
Attributes
token_expire_time[R]
Public Instance Methods
ready_for_authentication?()
click to toggle source
# File lib/conoha_api/authentication.rb, line 8 def ready_for_authentication? !! (@login && @password) end
token_expired?()
click to toggle source
# File lib/conoha_api/authentication.rb, line 12 def token_expired? return true unless token_expire_time token_expire_time < Time.now end
token_expires(expire_time)
click to toggle source
# File lib/conoha_api/authentication.rb, line 17 def token_expires(expire_time) @token_expire_time = case expire_time when String Time.iso8601(expire_time) when Date expire_time else raise end end