class SixSaferpay::Bancontact

Attributes

intent_url[RW]
qr_code_data[RW]

Public Class Methods

new(qr_code_data: nil, intent_url: nil) click to toggle source
# File lib/six_saferpay/models/bancontact.rb, line 6
def initialize(qr_code_data: nil, intent_url: nil)
  @qr_code_data = qr_code_data
  @intent_url = intent_url
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/models/bancontact.rb, line 11
def to_hash
  hash = Hash.new
  hash.merge!(qr_code_data: @qr_code_data) if @qr_code_data
  hash.merge!(intent_url: @intent_url) if @intent_url
  hash
end
Also aliased as: to_h