class SixSaferpay::SixSecurePayGateOffer::CreateOfferResponse
Attributes
offer_id[RW]
payment_link[RW]
Public Class Methods
new(offer_id:, payment_link: )
click to toggle source
# 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
Public Instance Methods
to_hash()
click to toggle source
# 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
Also aliased as: to_h