Class: Zoho::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/zoho.rb

Constant Summary collapse

TOKEN_PREFIX =
"Zoho-authtoken"

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  options.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_tokenObject

Returns the value of attribute auth_token.



13
14
15
# File 'lib/zoho.rb', line 13

def auth_token
  @auth_token
end

#organization_idObject

Returns the value of attribute organization_id.



13
14
15
# File 'lib/zoho.rb', line 13

def organization_id
  @organization_id
end