Class: ActiveForms::Configuration
- Inherits:
-
Object
- Object
- ActiveForms::Configuration
- Defined in:
- lib/active_forms/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#basic_auth ⇒ Object
Returns the value of attribute basic_auth.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/active_forms/configuration.rb', line 7 def initialize @api_url = { :protocol => "https", :host => 'api.activeforms.com' } @url = { :protocol => "https", :host => 'www.activeforms.com' } end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def api_url @api_url end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def base_url @base_url end |
#basic_auth ⇒ Object
Returns the value of attribute basic_auth.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def basic_auth @basic_auth end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def logger @logger end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def secret_key @secret_key end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/active_forms/configuration.rb', line 5 def url @url end |