Class: Quintype::API::Story
Class Method Summary collapse
- .bulk_stories_request(story_group) ⇒ Object
- .fetch(story_group, options = {}) ⇒ Object
- .find_by_slug(slug) ⇒ Object
- .search(options) ⇒ Object
Class Method Details
.bulk_stories_request(story_group) ⇒ Object
108 109 110 |
# File 'lib/quintype/api/story.rb', line 108 def bulk_stories_request(story_group) StoriesRequest.new(self, story_group) end |
.fetch(story_group, options = {}) ⇒ Object
112 113 114 |
# File 'lib/quintype/api/story.rb', line 112 def fetch(story_group, = {}) StoriesRequest.new(self, story_group).add_params().execute! end |
.find_by_slug(slug) ⇒ Object
103 104 105 106 |
# File 'lib/quintype/api/story.rb', line 103 def find_by_slug(slug) response = Client.instance.get_story_by_slug(slug) from_hash(response) if response end |
.search(options) ⇒ Object
116 117 118 |
# File 'lib/quintype/api/story.rb', line 116 def search() SearchRequest.new(self, ).execute! end |