class Tickethub::Formats::JSONFormat
Public Instance Methods
decode(json)
click to toggle source
# File lib/tickethub/formats/json_format.rb, line 18 def decode(json) JSON.parse(json) end
encode(hash, options = nil)
click to toggle source
# File lib/tickethub/formats/json_format.rb, line 14 def encode(hash, options = nil) hash.to_json(options) end
mime_type()
click to toggle source
# File lib/tickethub/formats/json_format.rb, line 10 def mime_type 'application/json' end