Class: TicketSharing::JsonSupport
- Inherits:
-
Object
- Object
- TicketSharing::JsonSupport
- Defined in:
- lib/ticket_sharing/json_support.rb
Class Method Summary collapse
Class Method Details
.decode(json) ⇒ Object
10 11 12 |
# File 'lib/ticket_sharing/json_support.rb', line 10 def self.decode(json) Yajl::Parser.new.parse(json) end |
.encode(attributes) ⇒ Object
6 7 8 |
# File 'lib/ticket_sharing/json_support.rb', line 6 def self.encode(attributes) Yajl::Encoder.encode(attributes) end |