Module: Mastodon::REST::Timelines
Instance Method Summary collapse
-
#hashtag_timeline(hashtag, options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from a hashtag.
-
#home_timeline(options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from the home timeline.
-
#list_timeline(id, options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from a list.
-
#public_timeline(options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from the public timeline.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#hashtag_timeline(hashtag, options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from a hashtag
43 44 45 |
# File 'lib/mastodon/rest/timelines.rb', line 43 def hashtag_timeline(hashtag, = {}) perform_request_with_collection(:get, "/api/v1/timelines/tag/#{hashtag}", , Mastodon::Status) end |
#home_timeline(options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from the home timeline
16 17 18 |
# File 'lib/mastodon/rest/timelines.rb', line 16 def home_timeline( = {}) perform_request_with_collection(:get, '/api/v1/timelines/home', , Mastodon::Status) end |
#list_timeline(id, options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from a list
55 56 57 |
# File 'lib/mastodon/rest/timelines.rb', line 55 def list_timeline(id, = {}) perform_request_with_collection(:get, "/api/v1/timelines/list/#{id}", , Mastodon::Status) end |
#public_timeline(options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from the public timeline
29 30 31 |
# File 'lib/mastodon/rest/timelines.rb', line 29 def public_timeline( = {}) perform_request_with_collection(:get, '/api/v1/timelines/public', , Mastodon::Status) end |