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, #update_attributes

Instance Attribute Details

#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_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

#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_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



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