Class: HaveAPI::Authentication::Token::ActionResult
- Inherits:
-
Object
- Object
- HaveAPI::Authentication::Token::ActionResult
- Defined in:
- lib/haveapi/authentication/token/action_result.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #complete? ⇒ Boolean
-
#initialize ⇒ ActionResult
constructor
A new instance of ActionResult.
- #ok ⇒ Object
- #ok? ⇒ Boolean
Constructor Details
#initialize ⇒ ActionResult
Returns a new instance of ActionResult.
24 25 26 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 24 def initialize @ok = false end |
Instance Attribute Details
#complete ⇒ Boolean
6 7 8 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 6 def complete @complete end |
#error ⇒ String?
10 11 12 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 10 def error @error end |
#next_action ⇒ String?
22 23 24 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 22 def next_action @next_action end |
#token ⇒ String?
14 15 16 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 14 def token @token end |
#valid_to ⇒ Time?
18 19 20 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 18 def valid_to @valid_to end |
Instance Method Details
#complete? ⇒ Boolean
37 38 39 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 37 def complete? @complete ? true : false end |
#ok ⇒ Object
28 29 30 31 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 28 def ok @ok = true self end |
#ok? ⇒ Boolean
33 34 35 |
# File 'lib/haveapi/authentication/token/action_result.rb', line 33 def ok? @ok && @error.nil? end |