Class: ZohoCrm::AccessToken::Facade

Inherits:
Object
  • Object
show all
Defined in:
lib/zoho_crm/access_token/facade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject (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_domainObject (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_inObject (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

#scopeObject (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_typeObject (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