Class: Statement::TicketTypeRow

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(ticket_type) ⇒ TicketTypeRow

Returns a new instance of TicketTypeRow.



158
159
160
161
162
163
164
165
# File 'app/models/statement.rb', line 158

def initialize(ticket_type)
  self.ticket_type = ticket_type.name
  self.member_ticket = ticket_type.member_ticket
  self.tickets = 0
  self.gross = 0
  self.processing = 0
  self.net = 0
end

Instance Attribute Details

#member_ticketObject

Returns the value of attribute member_ticket.



156
157
158
# File 'app/models/statement.rb', line 156

def member_ticket
  @member_ticket
end

#ticket_typeObject

Returns the value of attribute ticket_type.



156
157
158
# File 'app/models/statement.rb', line 156

def ticket_type
  @ticket_type
end