Module: LedgerSync::Domains::OperationResult::ResultTypeBase
- Defined in:
- lib/ledger_sync/domains/operation.rb
Instance Attribute Summary collapse
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
36 37 38 |
# File 'lib/ledger_sync/domains/operation.rb', line 36 def @meta end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
36 37 38 |
# File 'lib/ledger_sync/domains/operation.rb', line 36 def operation @operation end |
Class Method Details
.included(base) ⇒ Object
38 39 40 41 42 |
# File 'lib/ledger_sync/domains/operation.rb', line 38 def self.included(base) base.class_eval do simply_serialize only: %i[operation meta] end end |
Instance Method Details
#initialize(*args, **keywords) ⇒ Object
44 45 46 47 48 |
# File 'lib/ledger_sync/domains/operation.rb', line 44 def initialize(*args, **keywords) @operation = keywords.fetch(:operation) @meta = keywords[:meta] super(*args) end |