Module: LedgerSync::OperationResult::ResultTypeBase
- Defined in:
- lib/ledger_sync/result.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
32 33 34 |
# File 'lib/ledger_sync/result.rb', line 32 def operation @operation end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
32 33 34 |
# File 'lib/ledger_sync/result.rb', line 32 def resource @resource end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
32 33 34 |
# File 'lib/ledger_sync/result.rb', line 32 def response @response end |
Class Method Details
.included(base) ⇒ Object
34 35 36 37 38 |
# File 'lib/ledger_sync/result.rb', line 34 def self.included(base) base.class_eval do simply_serialize only: %i[operation resource response] end end |
Instance Method Details
#initialize(*args, operation:, resource:, response:) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/ledger_sync/result.rb', line 40 def initialize(*args, operation:, resource:, response:) @operation = operation @resource = resource @response = response super(*args) end |