class SeatGeek::Taxonomies::Concert

Attributes

parent_id[RW]
taxonomies[RW]

Public Class Methods

new(child_taxonomies:, file_path:, type:) click to toggle source
# File lib/seat_geek/taxonomies/concert.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/concert.rb, line 9
def all
  taxonomies
end
music_festival() click to toggle source
# File lib/seat_geek/taxonomies/concert.rb, line 13
def music_festival
  @parent_id = @yaml_hash.fetch('music_festival')
  build_tree
end