Class: TicketSummary::Row

Inherits:
Object
  • Object
show all
Defined in:
app/models/ticket_summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRow

Returns a new instance of Row.



19
20
21
# File 'app/models/ticket_summary.rb', line 19

def initialize
  @tickets = []
end

Instance Attribute Details

#showObject

Returns the value of attribute show.



17
18
19
# File 'app/models/ticket_summary.rb', line 17

def show
  @show
end

#ticketsObject

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