Class: ZohoTools::Configuration
- Inherits:
-
Object
- Object
- ZohoTools::Configuration
- Defined in:
- lib/zoho_tools/configuration.rb
Instance Attribute Summary collapse
-
#accounts_api_url ⇒ Object
Returns the value of attribute accounts_api_url.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#campaigns_api_url ⇒ Object
Returns the value of attribute campaigns_api_url.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
7 8 9 10 11 12 13 |
# File 'lib/zoho_tools/configuration.rb', line 7 def initialize @client_secret = ENV['ZOHO_CLIENT_SECRET'] @client_id = ENV['ZOHO_CLIENT_ID'] @accounts_api_url = ENV['ZOHO_ACCOUNTS_API_URL'] @campaigns_api_url = ENV['ZOHO_CAMPAIGNS_API_URL'] @callback_url = ENV['ZOHO_CALLBACK_URL'] end |
Instance Attribute Details
#accounts_api_url ⇒ Object
Returns the value of attribute accounts_api_url.
5 6 7 |
# File 'lib/zoho_tools/configuration.rb', line 5 def accounts_api_url @accounts_api_url end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
5 6 7 |
# File 'lib/zoho_tools/configuration.rb', line 5 def callback_url @callback_url end |
#campaigns_api_url ⇒ Object
Returns the value of attribute campaigns_api_url.
5 6 7 |
# File 'lib/zoho_tools/configuration.rb', line 5 def campaigns_api_url @campaigns_api_url end |
#client_id ⇒ Object
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/zoho_tools/configuration.rb', line 5 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
5 6 7 |
# File 'lib/zoho_tools/configuration.rb', line 5 def client_secret @client_secret end |