Module: RMeetup::Fetcher

Defined in:
lib/rmeetup/fetcher.rb,
lib/rmeetup/fetcher/base.rb,
lib/rmeetup/fetcher/rsvps.rb,
lib/rmeetup/fetcher/cities.rb,
lib/rmeetup/fetcher/events.rb,
lib/rmeetup/fetcher/groups.rb,
lib/rmeetup/fetcher/photos.rb,
lib/rmeetup/fetcher/topics.rb,
lib/rmeetup/fetcher/members.rb,
lib/rmeetup/fetcher/comments.rb

Defined Under Namespace

Classes: ApiError, Base, Cities, Comments, Events, Groups, Members, NoResponseError, Photos, Rsvps, Topics

Class Method Summary collapse

Class Method Details

.for(type) ⇒ Object

Return a fetcher for given type



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/rmeetup/fetcher.rb', line 16

def for(type)
  return  case type.to_sym
          when :topics
            Topics.new
          when :cities      
            Cities.new
          when :members     
            Members.new
          when :rsvps       
            Rsvps.new
          when :events      
            Events.new
          when :groups      
            Groups.new
          when :comments    
            Comments.new
          when :photos
            Photos.new
          end
end