class Square::Connect::SettlementEntry
Attributes
amount_money[RW]
fee_money[RW]
payment[RW]
type[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/square/connect/settlement_entry.rb, line 6 def initialize(attributes = {}) self.type = attributes[:type] self.payment = if attributes[:payment_id] Payment.new attributes[:payment_id] end [ :amount_money, :fee_money ].each do |money_key| if attributes[money_key] self.send "#{money_key}=", Money.new(attributes[money_key]) end end end