Class: Glabssms::TokenResult
- Inherits:
-
Object
- Object
- Glabssms::TokenResult
- Includes:
- BaseModule
- Defined in:
- lib/glabssms/token_result.rb
Overview
This class is used as a response object when we successfully retrieve a token from Globe Labs
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#subscriber_number ⇒ Object
readonly
Returns the value of attribute subscriber_number.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TokenResult
constructor
A new instance of TokenResult.
- #success? ⇒ Boolean
Methods included from BaseModule
Methods included from BaseModule::Methods
#set_instance_variables_from_hash
Constructor Details
#initialize(attributes) ⇒ TokenResult
Returns a new instance of TokenResult.
12 13 14 |
# File 'lib/glabssms/token_result.rb', line 12 def initialize(attributes) set_instance_variables_from_hash(attributes) end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
9 10 11 |
# File 'lib/glabssms/token_result.rb', line 9 def access_token @access_token end |
#subscriber_number ⇒ Object (readonly)
Returns the value of attribute subscriber_number.
10 11 12 |
# File 'lib/glabssms/token_result.rb', line 10 def subscriber_number @subscriber_number end |
Class Method Details
._new(*args) ⇒ Object
18 19 20 |
# File 'lib/glabssms/token_result.rb', line 18 def _new(*args) new(*args) end |
Instance Method Details
#success? ⇒ Boolean
23 24 25 |
# File 'lib/glabssms/token_result.rb', line 23 def success? true end |