Class: Apicasso::Configuration
- Inherits:
-
Object
- Object
- Apicasso::Configuration
- Defined in:
- lib/apicasso/configuration.rb
Overview
This class exposes the settable attributes of the gem
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#expose ⇒ Object
Returns the value of attribute expose.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#if ⇒ Object
Returns the value of attribute if.
-
#max_age ⇒ Object
Returns the value of attribute max_age.
-
#methods ⇒ Object
Returns the value of attribute methods.
-
#model_definitions_excluded ⇒ Object
Returns the value of attribute model_definitions_excluded.
-
#origins ⇒ Object
Returns the value of attribute origins.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#vary ⇒ Object
Returns the value of attribute vary.
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 11 12 13 14 15 16 17 18 |
# File 'lib/apicasso/configuration.rb', line 7 def initialize @origins = nil @headers = nil @resource = nil @credentials = nil @methods = nil @max_age = nil @expose = nil @if = nil @vary = nil @model_definitions_excluded = [] end |
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def credentials @credentials end |
#expose ⇒ Object
Returns the value of attribute expose.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def expose @expose end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def headers @headers end |
#if ⇒ Object
Returns the value of attribute if.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def if @if end |
#max_age ⇒ Object
Returns the value of attribute max_age.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def max_age @max_age end |
#methods ⇒ Object
Returns the value of attribute methods.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def methods @methods end |
#model_definitions_excluded ⇒ Object
Returns the value of attribute model_definitions_excluded.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def model_definitions_excluded @model_definitions_excluded end |
#origins ⇒ Object
Returns the value of attribute origins.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def origins @origins end |
#resource ⇒ Object
Returns the value of attribute resource.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def resource @resource end |
#vary ⇒ Object
Returns the value of attribute vary.
4 5 6 |
# File 'lib/apicasso/configuration.rb', line 4 def vary @vary end |