Class: Zoho::Configuration
- Inherits:
-
Object
- Object
- Zoho::Configuration
- Defined in:
- lib/zoho.rb
Constant Summary collapse
- TOKEN_PREFIX =
"Zoho-authtoken"
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 |
# File 'lib/zoho.rb', line 16 def initialize(={}) .each do |key, value| if key.to_s == "auth_token" self[key] = "#{TOKEN_PREFIX} #{value}" else self[key] = value end end end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
13 14 15 |
# File 'lib/zoho.rb', line 13 def auth_token @auth_token end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
13 14 15 |
# File 'lib/zoho.rb', line 13 def organization_id @organization_id end |