Sha256: 9e09c543d1591794dae32021e66e6f4c57c6733de2e2c1b75ce06071f0bf3184

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 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        
    end    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whatser-0.2.0 lib/whatser/resources/activity_feed.rb