class Braintree::SettlementBatchSummary
Attributes
records[R]
Public Class Methods
_new(*args)
click to toggle source
# File lib/braintree/settlement_batch_summary.rb, line 20 def _new(*args) self.new(*args) end
generate(settlement_date, group_by_custom_field = nil)
click to toggle source
# File lib/braintree/settlement_batch_summary.rb, line 7 def self.generate(settlement_date, group_by_custom_field = nil) criteria = {:settlement_date => settlement_date} criteria.merge!({:group_by_custom_field => group_by_custom_field}) if group_by_custom_field Configuration.gateway.settlement_batch_summary.generate(criteria) end
Protected Class Methods
new(gateway, attributes)
click to toggle source
# File lib/braintree/settlement_batch_summary.rb, line 13 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) end