Class: ZohoHub::Configuration

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

Constant Summary collapse

DEFAULT_API_DOMAIN =
'https://accounts.zoho.eu'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
# File 'lib/zoho_hub/configuration.rb', line 10

def initialize
  @client_id = ''
  @secret = ''
  @redirect_uri = ''
  @api_domain = DEFAULT_API_DOMAIN
end

Instance Attribute Details

#api_domainObject

Returns the value of attribute api_domain.



5
6
7
# File 'lib/zoho_hub/configuration.rb', line 5

def api_domain
  @api_domain
end

#client_idObject

Returns the value of attribute client_id.



5
6
7
# File 'lib/zoho_hub/configuration.rb', line 5

def client_id
  @client_id
end

#debug=(value) ⇒ Object (writeonly)

Sets the attribute debug

Parameters:

  • value

    the value to set the attribute debug to.



6
7
8
# File 'lib/zoho_hub/configuration.rb', line 6

def debug=(value)
  @debug = value
end

#redirect_uriObject

Returns the value of attribute redirect_uri.



5
6
7
# File 'lib/zoho_hub/configuration.rb', line 5

def redirect_uri
  @redirect_uri
end

#secretObject

Returns the value of attribute secret.



5
6
7
# File 'lib/zoho_hub/configuration.rb', line 5

def secret
  @secret
end

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/zoho_hub/configuration.rb', line 17

def debug?
  @debug
end