Class: Statement::PaymentTypeRow

Inherits:
Object
  • Object
show all
Includes:
Row
Defined in:
app/models/statement.rb

Instance Attribute Summary collapse

Attributes included from Row

#gross, #net, #processing, #tickets

Instance Method Summary collapse

Methods included from Row

#<<

Constructor Details

#initialize(payment_method) ⇒ PaymentTypeRow

Returns a new instance of PaymentTypeRow.



213
214
215
216
217
218
219
# File 'app/models/statement.rb', line 213

def initialize(payment_method)
  self.payment_method = payment_method
  self.tickets = 0
  self.gross = 0
  self.processing = 0
  self.net = 0
end

Instance Attribute Details

#payment_methodObject

Returns the value of attribute payment_method.



211
212
213
# File 'app/models/statement.rb', line 211

def payment_method
  @payment_method
end