class SixSaferpay::AddressForm

Attributes

display[RW]
mandatory_fields[RW]

Public Class Methods

new(display:, mandatory_fields: nil) click to toggle source
# File lib/six_saferpay/models/address_form.rb, line 7
def initialize(display:,
               mandatory_fields: nil)
  @display = display
  @mandatory_fields = mandatory_fields
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/models/address_form.rb, line 13
def to_hash
  hash = Hash.new
  hash.merge!(display: @display) if !@display.nil?
  hash.merge!(mandatory_fields: @mandatory_fields) if @mandatory_fields
  hash
end
Also aliased as: to_h