Class: Ingenico::Direct::SDK::Domain::PayoutStatusOutput
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::PayoutStatusOutput
- Defined in:
- lib/ingenico/direct/sdk/domain/payout_status_output.rb
Instance Attribute Summary collapse
-
#is_cancellable ⇒ true/false
The current value of is_cancellable.
-
#status_category ⇒ String
The current value of status_category.
-
#status_code ⇒ Integer
The current value of status_code.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#is_cancellable ⇒ true/false
Returns the current value of is_cancellable.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payout_status_output.rb', line 13 def is_cancellable @is_cancellable end |
#status_category ⇒ String
Returns the current value of status_category.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payout_status_output.rb', line 13 def status_category @status_category end |
#status_code ⇒ Integer
Returns the current value of status_code.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/payout_status_output.rb', line 13 def status_code @status_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/ingenico/direct/sdk/domain/payout_status_output.rb', line 27 def from_hash(hash) super @is_cancellable = hash['isCancellable'] if hash.key? 'isCancellable' @status_category = hash['statusCategory'] if hash.key? 'statusCategory' @status_code = hash['statusCode'] if hash.key? 'statusCode' end |
#to_h ⇒ Hash
19 20 21 22 23 24 25 |
# File 'lib/ingenico/direct/sdk/domain/payout_status_output.rb', line 19 def to_h hash = super hash['isCancellable'] = @is_cancellable unless @is_cancellable.nil? hash['statusCategory'] = @status_category unless @status_category.nil? hash['statusCode'] = @status_code unless @status_code.nil? hash end |