Module: Hachi::Awrence::Methods
- Included in:
- Clients::Base
- Defined in:
- lib/hachi/awrence/methods.rb
Instance Method Summary collapse
-
#to_camel_keys(value = self) ⇒ Object
Recursively converts Rubyish snake_case hash keys to CamelCase JSON-style hash keys suitable for use with a JSON API.
-
#to_camelback_keys(value = self) ⇒ Object
Recursively converts Rubyish snake_case hash keys to camelBack JSON-style hash keys suitable for use with a JSON API.
Instance Method Details
#to_camel_keys(value = self) ⇒ Object
Recursively converts Rubyish snake_case hash keys to CamelCase JSON-style hash keys suitable for use with a JSON API.
17 18 19 |
# File 'lib/hachi/awrence/methods.rb', line 17 def to_camel_keys(value = self) process_value(:to_camel_keys, value, first_upper: true) end |
#to_camelback_keys(value = self) ⇒ Object
Recursively converts Rubyish snake_case hash keys to camelBack JSON-style hash keys suitable for use with a JSON API.
10 11 12 |
# File 'lib/hachi/awrence/methods.rb', line 10 def to_camelback_keys(value = self) process_value(:to_camelback_keys, value, first_upper: false) end |