Module: Croudia::API::Timelines
- Included in:
- Client
- Defined in:
- lib/croudia/api/timelines.rb
Instance Method Summary collapse
-
#home_timeline(params = {}) ⇒ Array<Croudia::Status>
Home Timeline.
-
#mentions(params = {}) ⇒ Array<Croudia::Status>
(also: #mentions_timeline)
Mentions.
-
#public_timeline(params = {}) ⇒ Array<Croudia::Status>
Public Timeline.
-
#user_timeline(user, params = {}) ⇒ Array<Croudia::Status>
User Timeline.
Instance Method Details
#home_timeline(params = {}) ⇒ Array<Croudia::Status>
Home Timeline
31 32 33 34 |
# File 'lib/croudia/api/timelines.rb', line 31 def home_timeline(params={}) resp = get('/statuses/home_timeline.json', params) objects(Croudia::Status, resp) end |
#mentions(params = {}) ⇒ Array<Croudia::Status> Also known as: mentions_timeline
Mentions
73 74 75 76 |
# File 'lib/croudia/api/timelines.rb', line 73 def mentions(params={}) resp = get('/statuses/mentions.json', params) objects(Croudia::Status, resp) end |
#public_timeline(params = {}) ⇒ Array<Croudia::Status>
Public Timeline
16 17 18 19 |
# File 'lib/croudia/api/timelines.rb', line 16 def public_timeline(params={}) resp = get('/statuses/public_timeline.json', params) objects(Croudia::Status, resp) end |
#user_timeline(user, params = {}) ⇒ Array<Croudia::Status> #user_timeline(params = {}) ⇒ Array<Croudia::Status>
User Timeline
57 58 59 60 61 |
# File 'lib/croudia/api/timelines.rb', line 57 def user_timeline(user, params={}) merge_user!(params, user) resp = get('/statuses/user_timeline.json', params) objects(Croudia::Status, resp) end |