Class: Statement::TicketTypeRow
- Inherits:
-
Object
- Object
- Statement::TicketTypeRow
- Includes:
- Row
- Defined in:
- app/models/statement.rb
Instance Attribute Summary collapse
-
#member_ticket ⇒ Object
Returns the value of attribute member_ticket.
-
#ticket_type ⇒ Object
Returns the value of attribute ticket_type.
Attributes included from Row
#gross, #net, #processing, #tickets
Instance Method Summary collapse
-
#initialize(ticket_type) ⇒ TicketTypeRow
constructor
A new instance of TicketTypeRow.
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_ticket ⇒ Object
Returns the value of attribute member_ticket.
156 157 158 |
# File 'app/models/statement.rb', line 156 def member_ticket @member_ticket end |
#ticket_type ⇒ Object
Returns the value of attribute ticket_type.
156 157 158 |
# File 'app/models/statement.rb', line 156 def ticket_type @ticket_type end |