Class: Quintype::API::Story

Inherits:
Base
  • Object
show all
Defined in:
lib/quintype/api/story.rb

Class Method Summary collapse

Class Method Details

.bulk_stories_request(story_group) ⇒ Object



61
62
63
# File 'lib/quintype/api/story.rb', line 61

def bulk_stories_request(story_group)
  StoriesRequest.new(self, story_group)
end

.fetch(story_group, options = {}) ⇒ Object



65
66
67
# File 'lib/quintype/api/story.rb', line 65

def fetch(story_group, options = {})
  StoriesRequest.new(self, story_group).add_params(options).execute!
end

.find_by_slug(slug) ⇒ Object



56
57
58
59
# File 'lib/quintype/api/story.rb', line 56

def find_by_slug(slug)
  response = Client.instance.get_story_by_slug(slug)
  from_hash(response) if response
end

.search(options) ⇒ Object



69
70
71
# File 'lib/quintype/api/story.rb', line 69

def search(options)
  SearchRequest.new(self, options).execute!
end