Class: ApiModel::Configuration

Inherits:
Object
  • Object
show all
Includes:
Initializer
Defined in:
lib/api_model/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Initializer

#initialize

Methods included from Assignment

#update_attributes

Instance Attribute Details

#builderObject

Returns the value of attribute builder.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def builder
  @builder
end

#cache_settingsObject

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_strategyObject

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_formatterObject

Returns the value of attribute error_message_formatter.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def error_message_formatter
  @error_message_formatter
end

#headersObject

Returns the value of attribute headers.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def headers
  @headers
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def host
  @host
end

#json_errors_rootObject

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_rootObject

Returns the value of attribute json_root.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def json_root
  @json_root
end

#parserObject

Returns the value of attribute parser.



5
6
7
# File 'lib/api_model/configuration.rb', line 5

def parser
  @parser
end

#raise_on_not_foundObject

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_errorObject

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_unauthenticatedObject

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