Class: SeatGeek::Taxonomies::Tree
- Inherits:
-
Object
- Object
- SeatGeek::Taxonomies::Tree
- Defined in:
- lib/seat_geek/Taxonomies/tree.rb
Instance Method Summary collapse
- #concert ⇒ Object
-
#initialize(parent_ids, taxonomies) ⇒ Tree
constructor
A new instance of Tree.
- #sports ⇒ Object
- #theater ⇒ Object
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
#concert ⇒ Object
14 15 16 |
# File 'lib/seat_geek/Taxonomies/tree.rb', line 14 def concert finished_tree[:concert] end |
#sports ⇒ Object
10 11 12 |
# File 'lib/seat_geek/Taxonomies/tree.rb', line 10 def sports finished_tree[:sports] end |
#theater ⇒ Object
18 19 20 |
# File 'lib/seat_geek/Taxonomies/tree.rb', line 18 def theater finished_tree[:theater] end |