Module: Drymm::Shapes::JSONMethods::ClassMethods Private
- Included in:
- Drymm::Shapes
- Defined in:
- lib/drymm/shapes/json_methods.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#from_json(payload) ⇒ Object
private
Parse JSON to a shape node.
Instance Method Details
#from_json(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parse JSON to a shape node
25 26 27 |
# File 'lib/drymm/shapes/json_methods.rb', line 25 def from_json(payload) call(JSON.parse(payload, symbolize_names: true)) end |