Class: SixSaferpay::ClientInfo
- Inherits:
-
Object
- Object
- SixSaferpay::ClientInfo
- Defined in:
- lib/six_saferpay/models/client_info.rb
Instance Attribute Summary collapse
-
#os_info ⇒ Object
Returns the value of attribute os_info.
-
#shop_info ⇒ Object
Returns the value of attribute shop_info.
Instance Method Summary collapse
-
#initialize(shop_info:, os_info:) ⇒ ClientInfo
constructor
A new instance of ClientInfo.
- #to_hash ⇒ Object (also: #to_h)
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_info ⇒ Object
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_info ⇒ Object
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_hash ⇒ Object 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 |