Class: JSONAPI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jsonapi/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
# File 'lib/jsonapi/configuration.rb', line 7

def initialize
  #:underscored_key, :camelized_key, :dasherized_key, or custom
  self.json_key_format = :underscored_key
end

Instance Attribute Details

#json_key_formatObject

Returns the value of attribute json_key_format.



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

def json_key_format
  @json_key_format
end

#key_formatterObject (readonly)

Returns the value of attribute key_formatter.



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

def key_formatter
  @key_formatter
end