Class: Remember
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Remember
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1530 1531 1532 1533 1534 |
# File 'lib/schemas.rb', line 1530 def self.from_dynamic!(d) d = Types::Hash[d] new( ) end |
.from_json!(json) ⇒ Object
1536 1537 1538 |
# File 'lib/schemas.rb', line 1536 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1540 1541 1542 1543 |
# File 'lib/schemas.rb', line 1540 def to_dynamic { } end |
#to_json(options = nil) ⇒ Object
1545 1546 1547 |
# File 'lib/schemas.rb', line 1545 def to_json( = nil) JSON.generate(to_dynamic, ) end |