Class: Asetus::Adapter::JSON
- Inherits:
-
Object
- Object
- Asetus::Adapter::JSON
- Defined in:
- lib/asetus/adapter/json.rb
Class Method Summary collapse
Class Method Details
.from(json) ⇒ Object
18 19 20 21 |
# File 'lib/asetus/adapter/json.rb', line 18 def from(json) require 'json' ::JSON.load json end |
.to(hash) ⇒ Object
13 14 15 16 |
# File 'lib/asetus/adapter/json.rb', line 13 def to(hash) require 'json' ::JSON.pretty_generate hash end |