Class: Paysio::JSON

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

Class Method Summary collapse

Class Method Details

.decode(text) ⇒ Object



4
5
6
# File 'lib/paysio/json.rb', line 4

def decode(text)
  Oj.load(text)
end

.encode(json) ⇒ Object



8
9
10
# File 'lib/paysio/json.rb', line 8

def encode(json)
  Oj.dump(json, :mode => :compat)
end