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



29
30
31
# File 'lib/quintype/api/story.rb', line 29

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

.find_by_slug(slug) ⇒ Object



25
26
27
# File 'lib/quintype/api/story.rb', line 25

def find_by_slug(slug)
  from_hash(Client.instance.get_story_by_slug(slug).body["story"])
end