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.
30 31 32 |
# File 'lib/ledger_sync/result.rb', line 30 def operation @operation end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
30 31 32 |
# File 'lib/ledger_sync/result.rb', line 30 def resource @resource end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
30 31 32 |
# File 'lib/ledger_sync/result.rb', line 30 def response @response end |
Class Method Details
.included(base) ⇒ Object
32 33 34 35 36 |
# File 'lib/ledger_sync/result.rb', line 32 def self.included(base) base.class_eval do serialize only: i[operation resource response] end end |
Instance Method Details
#initialize(*args, operation:, resource:, response:) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/ledger_sync/result.rb', line 38 def initialize(*args, operation:, resource:, response:) @operation = operation @resource = resource @response = response super(*args) end |