Class: OnlinePayments::SDK::Domain::PaymentProduct5001

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/payment_product5001.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#messageString

Returns the current value of message.

Returns:

  • (String)

    the current value of message



11
12
13
# File 'lib/onlinepayments/sdk/domain/payment_product5001.rb', line 11

def message
  @message
end

#polling_urlString

Returns the current value of polling_url.

Returns:

  • (String)

    the current value of polling_url



11
12
13
# File 'lib/onlinepayments/sdk/domain/payment_product5001.rb', line 11

def polling_url
  @polling_url
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/onlinepayments/sdk/domain/payment_product5001.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'message'
    @message = hash['message']
  end
  if hash.has_key? 'pollingUrl'
    @polling_url = hash['pollingUrl']
  end
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
# File 'lib/onlinepayments/sdk/domain/payment_product5001.rb', line 18

def to_h
  hash = super
  hash['message'] = @message unless @message.nil?
  hash['pollingUrl'] = @polling_url unless @polling_url.nil?
  hash
end