Class: Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb
Instance Attribute Summary collapse
-
#detail ⇒ String
The current value of detail.
-
#instance ⇒ String
The current value of instance.
-
#status ⇒ Integer
The current value of status.
-
#title ⇒ String
The current value of title.
-
#type ⇒ String
The current value of type.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#detail ⇒ String
Returns the current value of detail.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 16 def detail @detail end |
#instance ⇒ String
Returns the current value of instance.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 16 def instance @instance end |
#status ⇒ Integer
Returns the current value of status.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 16 def status @status end |
#title ⇒ String
Returns the current value of title.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 16 def title @title end |
#type ⇒ String
Returns the current value of type.
16 17 18 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 16 def type @type end |
Instance Method Details
#from_hash(hash) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 39 def from_hash(hash) super if hash.has_key? 'detail' @detail = hash['detail'] end if hash.has_key? 'instance' @instance = hash['instance'] end if hash.has_key? 'status' @status = hash['status'] end if hash.has_key? 'title' @title = hash['title'] end if hash.has_key? 'type' @type = hash['type'] end end |
#to_h ⇒ Hash
29 30 31 32 33 34 35 36 37 |
# File 'lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb', line 29 def to_h hash = super hash['detail'] = @detail unless @detail.nil? hash['instance'] = @instance unless @instance.nil? hash['status'] = @status unless @status.nil? hash['title'] = @title unless @title.nil? hash['type'] = @type unless @type.nil? hash end |