Class: RMeetup::Fetcher::OpenEvents
- Defined in:
- lib/rmeetup/fetcher/open_events.rb
Instance Method Summary collapse
-
#format_result(result) ⇒ Object
Turn the result hash into a Event Class.
-
#initialize ⇒ OpenEvents
constructor
A new instance of OpenEvents.
Methods inherited from Base
#base_path, #fetch, #path_and_query, #query, #requester
Constructor Details
#initialize ⇒ OpenEvents
Returns a new instance of OpenEvents.
4 5 6 |
# File 'lib/rmeetup/fetcher/open_events.rb', line 4 def initialize @type = :open_events end |
Instance Method Details
#format_result(result) ⇒ Object
Turn the result hash into a Event Class
9 10 11 |
# File 'lib/rmeetup/fetcher/open_events.rb', line 9 def format_result(result) RMeetup::Type::Event.new(result) end |