class Ingenico::Connect::SDK::Domain::Payment::AmountBreakdown
@attr [Integer] amount @attr [String] type
Attributes
amount[RW]
type[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb, line 27 def from_hash(hash) super if hash.has_key? 'amount' @amount = hash['amount'] end if hash.has_key? 'type' @type = hash['type'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb, line 20 def to_h hash = super hash['amount'] = @amount unless @amount.nil? hash['type'] = @type unless @type.nil? hash end