Class: Miteru::Feeds::TweetFeed

Inherits:
Base show all
Defined in:
lib/miteru/feeds/tweetfeed.rb

Constant Summary

Constants inherited from Base

Base::IGNORE_EXTENSIONS

Instance Attribute Summary

Attributes inherited from Base

#base_url, #headers

Instance Method Summary collapse

Methods inherited from Base

#call, #decomposed_urls, inherited, #source

Methods inherited from Service

#call, call, #result, result

Constructor Details

#initialize(base_url = "https://api.tweetfeed.live") ⇒ TweetFeed

Returns a new instance of TweetFeed.



6
7
8
# File 'lib/miteru/feeds/tweetfeed.rb', line 6

def initialize(base_url = "https://api.tweetfeed.live")
  super
end

Instance Method Details

#urlsObject



10
11
12
13
# File 'lib/miteru/feeds/tweetfeed.rb', line 10

def urls
  data = get_json("/v1/today/url")
  data.filter_map { |item| item["value"] }
end