Class: SeatGeek::Taxonomies::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/seat_geek/Taxonomies/tree.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent_ids, taxonomies) ⇒ Tree

Returns a new instance of Tree.



4
5
6
7
8
# File 'lib/seat_geek/Taxonomies/tree.rb', line 4

def initialize(parent_ids, taxonomies)
  @parent_ids = parent_ids
  @taxonomies = taxonomies
  build_tree
end

Instance Method Details

#concertObject



14
15
16
# File 'lib/seat_geek/Taxonomies/tree.rb', line 14

def concert
  finished_tree[:concert]
end

#sportsObject



10
11
12
# File 'lib/seat_geek/Taxonomies/tree.rb', line 10

def sports
  finished_tree[:sports]
end

#theaterObject



18
19
20
# File 'lib/seat_geek/Taxonomies/tree.rb', line 18

def theater
  finished_tree[:theater]
end