class SixSaferpay::ClientInfo

Attributes

os_info[RW]
shop_info[RW]

Public Class Methods

new(shop_info:, os_info:) click to toggle source
# File lib/six_saferpay/models/client_info.rb, line 6
def initialize(shop_info:, os_info:)
  @shop_info = shop_info
  @os_info = os_info
end

Public Instance Methods

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