Class: Postrocktues::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/postrocktues/fetcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feed) ⇒ Fetcher

Returns a new instance of Fetcher.



11
12
13
# File 'lib/postrocktues/fetcher.rb', line 11

def initialize feed
  @feed = feed
end

Instance Attribute Details

#feedObject (readonly)

Returns the value of attribute feed.



9
10
11
# File 'lib/postrocktues/fetcher.rb', line 9

def feed
  @feed
end

Instance Method Details

#queriesObject



15
16
17
# File 'lib/postrocktues/fetcher.rb', line 15

def queries
  fetch_queries.reverse
end