Class: Worldline::Connect::SDK::V1::Domain::Capture
- Inherits:
-
AbstractOrderStatus
- Object
- Domain::DataObject
- AbstractOrderStatus
- Worldline::Connect::SDK::V1::Domain::Capture
- Defined in:
- lib/worldline/connect/sdk/v1/domain/capture.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#capture_output ⇒ Worldline::Connect::SDK::V1::Domain::CaptureOutput
The current value of capture_output.
-
#status ⇒ String
The current value of status.
-
#status_output ⇒ Worldline::Connect::SDK::V1::Domain::CaptureStatusOutput
The current value of status_output.
Attributes inherited from AbstractOrderStatus
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#capture_output ⇒ Worldline::Connect::SDK::V1::Domain::CaptureOutput
Returns the current value of capture_output.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/capture.rb', line 17 def capture_output @capture_output end |
#status ⇒ String
Returns the current value of status.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/capture.rb', line 17 def status @status end |
#status_output ⇒ Worldline::Connect::SDK::V1::Domain::CaptureStatusOutput
Returns the current value of status_output.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/domain/capture.rb', line 17 def status_output @status_output end |
Instance Method Details
#from_hash(hash) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/worldline/connect/sdk/v1/domain/capture.rb', line 34 def from_hash(hash) super if hash.has_key? 'captureOutput' raise TypeError, "value '%s' is not a Hash" % [hash['captureOutput']] unless hash['captureOutput'].is_a? Hash @capture_output = Worldline::Connect::SDK::V1::Domain::CaptureOutput.new_from_hash(hash['captureOutput']) end if hash.has_key? 'status' @status = hash['status'] end if hash.has_key? 'statusOutput' raise TypeError, "value '%s' is not a Hash" % [hash['statusOutput']] unless hash['statusOutput'].is_a? Hash @status_output = Worldline::Connect::SDK::V1::Domain::CaptureStatusOutput.new_from_hash(hash['statusOutput']) end end |
#to_h ⇒ Hash
26 27 28 29 30 31 32 |
# File 'lib/worldline/connect/sdk/v1/domain/capture.rb', line 26 def to_h hash = super hash['captureOutput'] = @capture_output.to_h unless @capture_output.nil? hash['status'] = @status unless @status.nil? hash['statusOutput'] = @status_output.to_h unless @status_output.nil? hash end |