class SeatGeek::Taxonomies::Theater

Attributes

parent_id[RW]
taxonomies[RW]

Public Class Methods

new(child_taxonomies:, file_path:, type:) click to toggle source
# File lib/seat_geek/taxonomies/theater.rb, line 4
def initialize(child_taxonomies:, file_path:, type:)
  @taxonomies = child_taxonomies
  @yaml_hash = YAML.load_file(file_path).fetch('event_parent_id').fetch(type)
end

Public Instance Methods

all() click to toggle source
# File lib/seat_geek/taxonomies/theater.rb, line 9
def all
  taxonomies
end
classical() click to toggle source
# File lib/seat_geek/taxonomies/theater.rb, line 13
def classical
  @parent_id = @yaml_hash.fetch('classical')
  build_child_tree
end