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
16 17 18 |
# File 'lib/ticket_sharing/json_support.rb', line 16 def self.decode(json) JSON_PARSER.load(json) end |
.encode(attributes) ⇒ Object
12 13 14 |
# File 'lib/ticket_sharing/json_support.rb', line 12 def self.encode(attributes) JSON_PARSER.dump(attributes) end |