Class: Statement::PassRow

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(pass_type_name) ⇒ PassRow

Returns a new instance of PassRow.



187
188
189
190
191
192
193
# File 'app/models/statement.rb', line 187

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

Instance Attribute Details

#pass_type_nameObject

Returns the value of attribute pass_type_name.



185
186
187
# File 'app/models/statement.rb', line 185

def pass_type_name
  @pass_type_name
end