Module: RatingChgkV2::JsonHandler

Included in:
Request
Defined in:
lib/rating_chgk_v2/json_handler.rb

Instance Method Summary collapse

Instance Method Details

#custom_dump(obj) ⇒ Object

Converts Ruby object to JSON



10
11
12
# File 'lib/rating_chgk_v2/json_handler.rb', line 10

def custom_dump(obj)
  JSON.dump obj
end

#custom_load(obj) ⇒ Object

Converts JSON to Ruby object



15
16
17
# File 'lib/rating_chgk_v2/json_handler.rb', line 15

def custom_load(obj)
  JSON.parse obj
end