Class: Yummly::Configuration
- Inherits:
-
Object
- Object
- Yummly::Configuration
- Defined in:
- lib/yummly/configuration.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#app_key ⇒ Object
Returns the value of attribute app_key.
-
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Creates a configuration object, defaulting use_ssl to false.
-
#use_ssl? ⇒ Boolean
Returns true if API calls to Yummly should use SSL.
Constructor Details
#initialize ⇒ Configuration
Creates a configuration object, defaulting use_ssl to false.
25 26 27 28 |
# File 'lib/yummly/configuration.rb', line 25 def initialize @use_ssl = false @http_adapter = Yummly::FaradayAdapter end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
19 20 21 |
# File 'lib/yummly/configuration.rb', line 19 def app_id @app_id end |
#app_key ⇒ Object
Returns the value of attribute app_key.
19 20 21 |
# File 'lib/yummly/configuration.rb', line 19 def app_key @app_key end |
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
19 20 21 |
# File 'lib/yummly/configuration.rb', line 19 def http_adapter @http_adapter end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
19 20 21 |
# File 'lib/yummly/configuration.rb', line 19 def use_ssl @use_ssl end |
Instance Method Details
#use_ssl? ⇒ Boolean
Returns true if API calls to Yummly should use SSL.
35 36 37 |
# File 'lib/yummly/configuration.rb', line 35 def use_ssl? use_ssl end |