Class: Stratify::Instapaper::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/stratify-instapaper/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rss_url) ⇒ Query

Returns a new instance of Query.



9
10
11
# File 'lib/stratify-instapaper/query.rb', line 9

def initialize(rss_url)
  @rss_url = rss_url
end

Instance Attribute Details

#rss_urlObject (readonly)

Returns the value of attribute rss_url.



7
8
9
# File 'lib/stratify-instapaper/query.rb', line 7

def rss_url
  @rss_url
end

Instance Method Details

#activitiesObject



13
14
15
# File 'lib/stratify-instapaper/query.rb', line 13

def activities
  raw_activities.map {|raw_activity| build_activity_from_raw_data(raw_activity)}
end