Class: SixSaferpay::ProcessingData
- Inherits:
-
Object
- Object
- SixSaferpay::ProcessingData
- Defined in:
- lib/six_saferpay/models/processing_data.rb
Instance Attribute Summary collapse
-
#bancontact ⇒ Object
Returns the value of attribute bancontact.
Instance Method Summary collapse
-
#initialize(bancontact: nil) ⇒ ProcessingData
constructor
A new instance of ProcessingData.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(bancontact: nil) ⇒ ProcessingData
Returns a new instance of ProcessingData.
6 7 8 |
# File 'lib/six_saferpay/models/processing_data.rb', line 6 def initialize(bancontact: nil) @bancontact = SixSaferpay::Bancontact.new(**bancontact.to_h) if bancontact end |
Instance Attribute Details
#bancontact ⇒ Object
Returns the value of attribute bancontact.
4 5 6 |
# File 'lib/six_saferpay/models/processing_data.rb', line 4 def bancontact @bancontact end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
10 11 12 13 14 |
# File 'lib/six_saferpay/models/processing_data.rb', line 10 def to_hash hash = Hash.new hash.merge!(bancontact: @bancontact.to_h) if @bancontact hash end |