Class: Ticket

Inherits:
Entity show all
Defined in:
lib/ttr/entities/ticket.rb

Overview

Copyright © 2011 Jesse Sielaff

Instance Method Summary collapse

Methods inherited from Entity

inherited, #initialize

Constructor Details

This class inherits a constructor from Entity

Instance Method Details

#citiesObject

Returns an Array of the Cities on the Ticket.



9
10
11
# File 'lib/ttr/entities/ticket.rb', line 9

def cities
  City.entities(@obj.city_objs)
end

#pointsObject

Returns the point value of the Ticket.



15
16
17
# File 'lib/ttr/entities/ticket.rb', line 15

def points
  @obj.points
end