Class: ZohoCrm::AccessToken::Facade
- Inherits:
-
Object
- Object
- ZohoCrm::AccessToken::Facade
- Defined in:
- lib/zoho_crm/access_token/facade.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#api_domain ⇒ Object
readonly
Returns the value of attribute api_domain.
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#token_type ⇒ Object
readonly
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(hash) ⇒ Facade
Returns a new instance of Facade.
6 7 8 9 10 11 12 |
# File 'lib/zoho_crm/access_token/facade.rb', line 6 def initialize(hash) @access_token = hash['access_token'] @api_domain = hash['api_domain'] @expires_in = hash['expires_in'] @scope = hash['scope'] @token_type = hash['token_type'] end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
4 5 6 |
# File 'lib/zoho_crm/access_token/facade.rb', line 4 def access_token @access_token end |
#api_domain ⇒ Object (readonly)
Returns the value of attribute api_domain.
4 5 6 |
# File 'lib/zoho_crm/access_token/facade.rb', line 4 def api_domain @api_domain end |
#expires_in ⇒ Object (readonly)
Returns the value of attribute expires_in.
4 5 6 |
# File 'lib/zoho_crm/access_token/facade.rb', line 4 def expires_in @expires_in end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
4 5 6 |
# File 'lib/zoho_crm/access_token/facade.rb', line 4 def scope @scope end |
#token_type ⇒ Object (readonly)
Returns the value of attribute token_type.
4 5 6 |
# File 'lib/zoho_crm/access_token/facade.rb', line 4 def token_type @token_type end |