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.
-
#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
40 41 42 43 44 |
# File 'lib/mastodon/rest/timelines.rb', line 40 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
17 18 19 20 |
# File 'lib/mastodon/rest/timelines.rb', line 17 def home_timeline( = {}) perform_request_with_collection(:get, '/api/v1/timelines/home', , Mastodon::Status) end |
#public_timeline(options = {}) ⇒ Mastodon::Collection<Mastodon::Status>
Retrieve statuses from the public timeline
28 29 30 31 |
# File 'lib/mastodon/rest/timelines.rb', line 28 def public_timeline( = {}) perform_request_with_collection(:get, '/api/v1/timelines/public', , Mastodon::Status) end |