Class: TopicRetriever
- Inherits:
-
Object
- Object
- TopicRetriever
- Defined in:
- lib/topic_retriever.rb
Instance Method Summary collapse
-
#initialize(embed_url, opts = nil) ⇒ TopicRetriever
constructor
A new instance of TopicRetriever.
- #retrieve ⇒ Object
Constructor Details
#initialize(embed_url, opts = nil) ⇒ TopicRetriever
Returns a new instance of TopicRetriever.
4 5 6 7 |
# File 'lib/topic_retriever.rb', line 4 def initialize(, opts = nil) @embed_url = @opts = opts || {} end |
Instance Method Details
#retrieve ⇒ Object
9 10 11 |
# File 'lib/topic_retriever.rb', line 9 def retrieve perform_retrieve unless (invalid_url? || retrieved_recently?) end |