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
19 20 21 22 |
# File 'lib/asetus/adapter/json.rb', line 19 def from json require 'json' ::JSON.load json end |
.to(hash) ⇒ Object
14 15 16 17 |
# File 'lib/asetus/adapter/json.rb', line 14 def to hash require 'json' ::JSON.pretty_generate hash end |