Class: JSONAPI::Configuration
- Inherits:
-
Object
- Object
- JSONAPI::Configuration
- Defined in:
- lib/jsonapi/configuration.rb
Instance Attribute Summary collapse
-
#json_key_format ⇒ Object
Returns the value of attribute json_key_format.
-
#key_formatter ⇒ Object
readonly
Returns the value of attribute key_formatter.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_format ⇒ Object
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_formatter ⇒ Object (readonly)
Returns the value of attribute key_formatter.
5 6 7 |
# File 'lib/jsonapi/configuration.rb', line 5 def key_formatter @key_formatter end |