class SixSaferpay::Brand

Attributes

name[RW]
payment_method[RW]

Public Class Methods

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

Public Instance Methods

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