Class: Hanami::DB::Struct
- Inherits:
-
ROM::Struct
- Object
- ROM::Struct
- Hanami::DB::Struct
- Defined in:
- lib/hanami/db/struct.rb
Overview
Instance Method Summary collapse
-
#to_json(*args) ⇒ Object
Simple conversion of attributes to JSON format, without this method, the instance of the struct gets converted to a string.
Instance Method Details
#to_json(*args) ⇒ Object
Simple conversion of attributes to JSON format, without this method, the instance of the struct gets converted to a string
13 14 15 |
# File 'lib/hanami/db/struct.rb', line 13 def to_json(*args) to_h.to_json(*args) end |