Class: TravisCheckRubies::Fetcher
- Inherits:
-
Object
- Object
- TravisCheckRubies::Fetcher
- Defined in:
- lib/travis_check_rubies/fetcher.rb
Constant Summary collapse
- CACHE_TIME =
24 * 60 * 60
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(url) ⇒ Fetcher
constructor
A new instance of Fetcher.
Constructor Details
#initialize(url) ⇒ Fetcher
Returns a new instance of Fetcher.
12 13 14 |
# File 'lib/travis_check_rubies/fetcher.rb', line 12 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/travis_check_rubies/fetcher.rb', line 10 def url @url end |
Instance Method Details
#data ⇒ Object
16 17 18 |
# File 'lib/travis_check_rubies/fetcher.rb', line 16 def data cached_data || fetch_data end |