Class: Pastvu::Parser
- Inherits:
-
Object
- Object
- Pastvu::Parser
- Defined in:
- lib/pastvu/parser.rb
Class Method Summary collapse
Class Method Details
.to_hash(json) ⇒ Object
9 10 11 12 |
# File 'lib/pastvu/parser.rb', line 9 def self.to_hash(json) hash = JSON.parse(json) # symbolize_keys hash end |
.to_json(hash) ⇒ Object
5 6 7 |
# File 'lib/pastvu/parser.rb', line 5 def self.to_json(hash) JSON.dump(hash) end |