Class: Whatser::ActivityFeed

Inherits:
Resource show all
Defined in:
lib/whatser/resources/activity_feed.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#json

Class Method Summary collapse

Methods inherited from Resource

#api_request, api_request, client, convert_data_to_model, from_hash_to_model, #initialize, set

Constructor Details

This class inherits a constructor from Whatser::Resource

Instance Attribute Details

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/whatser/resources/activity_feed.rb', line 4

def city
  @city
end

#created_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/whatser/resources/activity_feed.rb', line 4

def created_at
  @created_at
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/whatser/resources/activity_feed.rb', line 4

def message
  @message
end

#object_avatarObject

Returns the value of attribute object_avatar.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def object_avatar
  @object_avatar
end

#object_idObject

Returns the value of attribute object_id.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def object_id
  @object_id
end

#object_nameObject

Returns the value of attribute object_name.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def object_name
  @object_name
end

#poi_idObject

Returns the value of attribute poi_id.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def poi_id
  @poi_id
end

#poi_nameObject

Returns the value of attribute poi_name.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def poi_name
  @poi_name
end

#user_avatarObject

Returns the value of attribute user_avatar.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def user_avatar
  @user_avatar
end

#user_idObject

Returns the value of attribute user_id.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def user_id
  @user_id
end

#user_nameObject

Returns the value of attribute user_name.



3
4
5
# File 'lib/whatser/resources/activity_feed.rb', line 3

def user_name
  @user_name
end

Class Method Details

.global(params = {}) ⇒ Object



11
12
13
# File 'lib/whatser/resources/activity_feed.rb', line 11

def global(params={})
  api_request :get, "/api/users/activity_feed", {:query => params}
end

.mine(params = {}) ⇒ Object



7
8
9
# File 'lib/whatser/resources/activity_feed.rb', line 7

def mine(params={})
  user('me', params)
end

.spot(poi_id, params = {}) ⇒ Object



19
20
21
# File 'lib/whatser/resources/activity_feed.rb', line 19

def spot(poi_id, params={})
  api_request :get, "/api/poi/#{poi_id}/activity_feed", {:query => params}
end

.user(user_id, params = {}) ⇒ Object



15
16
17
# File 'lib/whatser/resources/activity_feed.rb', line 15

def user(user_id, params={})
  api_request :get, "/api/users/#{user_id}/activity_feed", {:query => params}
end