Class: ZohoHub::Configuration
- Inherits:
-
Object
- Object
- ZohoHub::Configuration
- Defined in:
- lib/zoho_hub/configuration.rb
Constant Summary collapse
- DEFAULT_API_DOMAIN =
'https://accounts.zoho.eu'
Instance Attribute Summary collapse
-
#api_domain ⇒ Object
Returns the value of attribute api_domain.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#debug ⇒ Object
writeonly
Sets the attribute debug.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_domain ⇒ Object
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_id ⇒ Object
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
6 7 8 |
# File 'lib/zoho_hub/configuration.rb', line 6 def debug=(value) @debug = value end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
5 6 7 |
# File 'lib/zoho_hub/configuration.rb', line 5 def redirect_uri @redirect_uri end |
#secret ⇒ Object
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
17 18 19 |
# File 'lib/zoho_hub/configuration.rb', line 17 def debug? @debug end |