Class: ApiModel::Configuration
- Inherits:
-
Object
- Object
- ApiModel::Configuration
- Includes:
- Initializer
- Defined in:
- lib/api_model/configuration.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#host ⇒ Object
Returns the value of attribute host.
-
#json_root ⇒ Object
Returns the value of attribute json_root.
-
#raise_on_not_found ⇒ Object
Returns the value of attribute raise_on_not_found.
-
#raise_on_unauthenticated ⇒ Object
Returns the value of attribute raise_on_unauthenticated.
Class Method Summary collapse
Methods included from Initializer
#initialize, #update_attributes
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def headers @headers end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def host @host end |
#json_root ⇒ Object
Returns the value of attribute json_root.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def json_root @json_root end |
#raise_on_not_found ⇒ Object
Returns the value of attribute raise_on_not_found.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def raise_on_not_found @raise_on_not_found end |
#raise_on_unauthenticated ⇒ Object
Returns the value of attribute raise_on_unauthenticated.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def raise_on_unauthenticated @raise_on_unauthenticated end |
Class Method Details
.from_inherited_config(config) ⇒ Object
7 8 9 |
# File 'lib/api_model/configuration.rb', line 7 def self.from_inherited_config(config) new config.instance_values.reject {|k,v| v.blank? } end |