Class: TicketSummary::Row
- Inherits:
-
Object
- Object
- TicketSummary::Row
- Defined in:
- app/models/ticket_summary.rb
Instance Attribute Summary collapse
-
#show ⇒ Object
Returns the value of attribute show.
-
#tickets ⇒ Object
Returns the value of attribute tickets.
Instance Method Summary collapse
- #<<(ticket) ⇒ Object
-
#initialize ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize ⇒ Row
Returns a new instance of Row.
19 20 21 |
# File 'app/models/ticket_summary.rb', line 19 def initialize @tickets = [] end |
Instance Attribute Details
#show ⇒ Object
Returns the value of attribute show.
17 18 19 |
# File 'app/models/ticket_summary.rb', line 17 def show @show end |
#tickets ⇒ Object
Returns the value of attribute tickets.
17 18 19 |
# File 'app/models/ticket_summary.rb', line 17 def tickets @tickets end |
Instance Method Details
#<<(ticket) ⇒ Object
23 24 25 26 27 |
# File 'app/models/ticket_summary.rb', line 23 def <<(ticket) @tickets << ticket @show = ticket.show self end |