Class: Yaka::BasicStruct
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Yaka::BasicStruct
- Defined in:
- lib/yaka/basic_struct.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.primitive ⇒ Object
10 11 12 |
# File 'lib/yaka/basic_struct.rb', line 10 def self.primitive Types::Hash end |
Instance Method Details
#to_json(_args = {}) ⇒ Object
26 27 28 |
# File 'lib/yaka/basic_struct.rb', line 26 def to_json(_args = {}) attributes.to_json end |