Class: ZohoHub::Configuration

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

Constant Summary collapse

DEFAULT_BASE_URL =
'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
16
# File 'lib/zoho_hub/configuration.rb', line 10

def initialize
  @client_id = ''
  @secret = ''
  @redirect_uri = ''
  @base_url = DEFAULT_BASE_URL
  @access_type = Auth::DEFAULT_ACCESS_TYPE
end

Instance Attribute Details

#access_typeObject

Returns the value of attribute access_type.



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

def access_type
  @access_type
end

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
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)


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

def debug?
  @debug
end