Module: Postmark::Json

Defined in:
lib/postmark/json.rb

Class Method Summary collapse

Class Method Details

.decode(data) ⇒ Object



10
11
12
# File 'lib/postmark/json.rb', line 10

def decode(data)
  json_parser.decode(data)
end

.encode(data) ⇒ Object



5
6
7
8
# File 'lib/postmark/json.rb', line 5

def encode(data)
  json_parser
  data.to_json
end