Class: Resourceful::Resource::Json
- Defined in:
- lib/resourceful/resource/format.rb
Constant Summary
Constants inherited from Format
Class Method Summary collapse
Methods inherited from Format
Class Method Details
.build(json_str) ⇒ Object
58 59 60 61 62 |
# File 'lib/resourceful/resource/format.rb', line 58 def build(json_str) parsable?(json_str) do JSON.parse(json_str.to_s.strip) end end |
.to_s ⇒ Object
54 55 56 |
# File 'lib/resourceful/resource/format.rb', line 54 def to_s "json" end |