Class: AbcJsonapi::Configuration
- Inherits:
-
Object
- Object
- AbcJsonapi::Configuration
- Defined in:
- lib/abc_jsonapi.rb
Instance Attribute Summary collapse
-
#key_transform_method ⇒ Object
Returns the value of attribute key_transform_method.
-
#pluralize_resources ⇒ Object
Returns the value of attribute pluralize_resources.
-
#transform_keys ⇒ Object
Returns the value of attribute transform_keys.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/abc_jsonapi.rb', line 17 def initialize @transform_keys ||= true @key_transform_method ||= 'camel' # snake or camel @pluralize_resources ||= false end |
Instance Attribute Details
#key_transform_method ⇒ Object
Returns the value of attribute key_transform_method.
15 16 17 |
# File 'lib/abc_jsonapi.rb', line 15 def key_transform_method @key_transform_method end |
#pluralize_resources ⇒ Object
Returns the value of attribute pluralize_resources.
15 16 17 |
# File 'lib/abc_jsonapi.rb', line 15 def pluralize_resources @pluralize_resources end |
#transform_keys ⇒ Object
Returns the value of attribute transform_keys.
15 16 17 |
# File 'lib/abc_jsonapi.rb', line 15 def transform_keys @transform_keys end |