Class: ApiModel::Configuration
- Inherits:
-
Object
- Object
- ApiModel::Configuration
- Includes:
- Initializer
- Defined in:
- lib/api_model/configuration.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
Returns the value of attribute builder.
-
#cache_settings ⇒ Object
Returns the value of attribute cache_settings.
-
#cache_strategy ⇒ Object
Returns the value of attribute cache_strategy.
-
#error_message_formatter ⇒ Object
Returns the value of attribute error_message_formatter.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#host ⇒ Object
Returns the value of attribute host.
-
#json_errors_root ⇒ Object
Returns the value of attribute json_errors_root.
-
#json_root ⇒ Object
Returns the value of attribute json_root.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#raise_on_not_found ⇒ Object
Returns the value of attribute raise_on_not_found.
-
#raise_on_server_error ⇒ Object
Returns the value of attribute raise_on_server_error.
-
#raise_on_unauthenticated ⇒ Object
Returns the value of attribute raise_on_unauthenticated.
Class Method Summary collapse
Methods included from Initializer
Methods included from Assignment
Instance Attribute Details
#builder ⇒ Object
Returns the value of attribute builder.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def builder @builder end |
#cache_settings ⇒ Object
Returns the value of attribute cache_settings.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def cache_settings @cache_settings end |
#cache_strategy ⇒ Object
Returns the value of attribute cache_strategy.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def cache_strategy @cache_strategy end |
#error_message_formatter ⇒ Object
Returns the value of attribute error_message_formatter.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def @error_message_formatter end |
#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_errors_root ⇒ Object
Returns the value of attribute json_errors_root.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def json_errors_root @json_errors_root 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 |
#parser ⇒ Object
Returns the value of attribute parser.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def parser @parser 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_server_error ⇒ Object
Returns the value of attribute raise_on_server_error.
5 6 7 |
# File 'lib/api_model/configuration.rb', line 5 def raise_on_server_error @raise_on_server_error 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
9 10 11 |
# File 'lib/api_model/configuration.rb', line 9 def self.from_inherited_config(config) new config.instance_values.reject {|k,v| v.blank? } end |