Class: SixSaferpay::ClientInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/client_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shop_info:, os_info:) ⇒ ClientInfo

Returns a new instance of ClientInfo.



6
7
8
9
# 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

Instance Attribute Details

#os_infoObject

Returns the value of attribute os_info.



4
5
6
# File 'lib/six_saferpay/models/client_info.rb', line 4

def os_info
  @os_info
end

#shop_infoObject

Returns the value of attribute shop_info.



4
5
6
# File 'lib/six_saferpay/models/client_info.rb', line 4

def shop_info
  @shop_info
end

Instance Method Details

#to_hashObject Also known as: to_h



11
12
13
14
15
16
# 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