Sha256: cb1ed57d25f94b9d01235aff331660363ee03256b95804f8cda53cd018b6e90f

Contents?: true

Size: 722 Bytes

Versions: 6

Compression:

Stored size: 722 Bytes

Contents

module Whatser
  class ActivityFeed < Whatser::Resource
    attr_accessor :user_id,:user_name,:user_avatar,:poi_id,:poi_name,:object_id,:object_name,:object_avatar
    attr_accessor :city,:message,:created_at
    
    class << self
      def mine(params={})
        user('me', params)
      end
      
      def global(params={})
        api_request :get, "/api/users/activity_feed", {:query => params}
      end      
      
      def user(user_id, params={})
        api_request :get, "/api/users/#{user_id}/activity_feed", {:query => params}
      end   
      
      def spot(poi_id, params={})
        api_request :get, "/api/poi/#{poi_id}/activity_feed", {:query => params}
      end           
    end    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whatser-0.6.1 lib/whatser/resources/activity_feed.rb
whatser-0.6.0 lib/whatser/resources/activity_feed.rb
whatser-0.5.0 lib/whatser/resources/activity_feed.rb
whatser-0.4.0 lib/whatser/resources/activity_feed.rb
whatser-0.3.2 lib/whatser/resources/activity_feed.rb
whatser-0.3.1 lib/whatser/resources/activity_feed.rb