Class: Quintype::API::StoriesResponse
- Inherits:
-
Struct
- Object
- Struct
- Quintype::API::StoriesResponse
- Includes:
- Enumerable
- Defined in:
- lib/quintype/api/story.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#stories ⇒ Object
Returns the value of attribute stories.
Instance Method Summary collapse
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params
2 3 4 |
# File 'lib/quintype/api/story.rb', line 2 def params @params end |
#stories ⇒ Object
Returns the value of attribute stories
2 3 4 |
# File 'lib/quintype/api/story.rb', line 2 def stories @stories end |
Instance Method Details
#cache_keys(args = {}) ⇒ Object
15 16 17 |
# File 'lib/quintype/api/story.rb', line 15 def cache_keys(args = {}) group_keys(args) + story_keys(args) end |
#each ⇒ Object
5 6 7 |
# File 'lib/quintype/api/story.rb', line 5 def each stories.each { |story| yield story } end |
#location ⇒ Object
9 10 11 12 13 |
# File 'lib/quintype/api/story.rb', line 9 def location return "section-#{params["section-id"]}" if params["section-id"] return "home" if !params["tag"] && !params["section"] && !params["section-name"] nil end |
#to_liquid ⇒ Object
19 20 21 |
# File 'lib/quintype/api/story.rb', line 19 def to_liquid stories end |