Class: OSON::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/oson.rb

Class Method Summary collapse

Class Method Details

.parse(json) ⇒ Object



6
7
8
9
# File 'lib/oson.rb', line 6

def self.parse(json)
  obj = Openstruct.new JSON.parse(json)
  obj
end