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.



184
185
186
187
188
189
190
# File 'app/models/statement.rb', line 184

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.



182
183
184
# File 'app/models/statement.rb', line 182

def payment_method
  @payment_method
end