Class: ZohoHub::Configuration
- Inherits:
-
Object
- Object
- ZohoHub::Configuration
- Defined in:
- lib/zoho_hub/configuration.rb
Constant Summary collapse
- DEFAULT_BASE_URL =
'https://accounts.zoho.eu'
Instance Attribute Summary collapse
-
#access_type ⇒ Object
Returns the value of attribute access_type.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#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 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_type ⇒ Object
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_url ⇒ Object
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_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
18 19 20 |
# File 'lib/zoho_hub/configuration.rb', line 18 def debug? @debug end |