Class: Whatser::ActivityFeed
- Defined in:
- lib/whatser/resources/activity_feed.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#message ⇒ Object
Returns the value of attribute message.
-
#object_avatar ⇒ Object
Returns the value of attribute object_avatar.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#object_name ⇒ Object
Returns the value of attribute object_name.
-
#poi_id ⇒ Object
Returns the value of attribute poi_id.
-
#poi_name ⇒ Object
Returns the value of attribute poi_name.
-
#user_avatar ⇒ Object
Returns the value of attribute user_avatar.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Attributes inherited from Resource
Class Method Summary collapse
- .global(params = {}) ⇒ Object
- .mine(params = {}) ⇒ Object
- .spot(poi_id, params = {}) ⇒ Object
- .user(user_id, params = {}) ⇒ Object
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
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/whatser/resources/activity_feed.rb', line 4 def city @city end |
#created_at ⇒ Object
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 |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/whatser/resources/activity_feed.rb', line 4 def @message end |
#object_avatar ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
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_avatar ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
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 |