Class: SixSaferpay::SixSecurePayGateOffer::CreateOfferResponse
- Inherits:
-
Object
- Object
- SixSaferpay::SixSecurePayGateOffer::CreateOfferResponse
- Defined in:
- lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb
Instance Attribute Summary collapse
-
#offer_id ⇒ Object
Returns the value of attribute offer_id.
-
#payment_link ⇒ Object
Returns the value of attribute payment_link.
Instance Method Summary collapse
-
#initialize(offer_id:, payment_link:) ⇒ CreateOfferResponse
constructor
A new instance of CreateOfferResponse.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(offer_id:, payment_link:) ⇒ CreateOfferResponse
Returns a new instance of CreateOfferResponse.
9 10 11 12 13 14 |
# File 'lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb', line 9 def initialize(offer_id:, payment_link: ) @offer_id = offer_id if offer_id @payment_link = payment_link if payment_link end |
Instance Attribute Details
#offer_id ⇒ Object
Returns the value of attribute offer_id.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb', line 5 def offer_id @offer_id end |
#payment_link ⇒ Object
Returns the value of attribute payment_link.
5 6 7 |
# File 'lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb', line 5 def payment_link @payment_link end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
16 17 18 19 20 21 |
# File 'lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb', line 16 def to_hash hash = Hash.new hash.merge!(offer_id: @offer_id) if @offer_id hash.merge!(payment_link: @payment_link) if @payment_link hash end |