Class: Sesc::Parser::Sp::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/sesc/parser/sp/events.rb

Constant Summary collapse

VALUES =
%i[
  url image_url availability category title date
  hours place description age_limit price
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(html_body_events) ⇒ Events

Returns a new instance of Events.



12
13
14
# File 'lib/sesc/parser/sp/events.rb', line 12

def initialize(html_body_events)
  @events = Body.new(html_body_events).events
end

Instance Method Details

#to_hashObject



16
17
18
# File 'lib/sesc/parser/sp/events.rb', line 16

def to_hash
  group_by_place(load_events)
end