Class: Yaka::BasicStruct

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/yaka/basic_struct.rb

Direct Known Subclasses

Payment, PaymentResponse

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primitiveObject



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