Class: Stratify::Rhapsody::Query
- Inherits:
-
Object
- Object
- Stratify::Rhapsody::Query
- Defined in:
- lib/stratify-rhapsody/query.rb
Instance Attribute Summary collapse
-
#rss_url ⇒ Object
readonly
Returns the value of attribute rss_url.
Instance Method Summary collapse
- #activities ⇒ Object
-
#initialize(rss_url) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(rss_url) ⇒ Query
Returns a new instance of Query.
9 10 11 |
# File 'lib/stratify-rhapsody/query.rb', line 9 def initialize(rss_url) @rss_url = rss_url end |
Instance Attribute Details
#rss_url ⇒ Object (readonly)
Returns the value of attribute rss_url.
7 8 9 |
# File 'lib/stratify-rhapsody/query.rb', line 7 def rss_url @rss_url end |
Instance Method Details
#activities ⇒ Object
13 14 15 |
# File 'lib/stratify-rhapsody/query.rb', line 13 def activities raw_activities.map {|raw_activity| build_activity_from_raw_data(raw_activity)} end |