Class: Rubyblok::Services::GetStoryblokStory

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyblok/services/get_storyblok_story.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slug:) ⇒ GetStoryblokStory

Returns a new instance of GetStoryblokStory.



8
9
10
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 8

def initialize(slug:)
  @slug = slug
end

Class Method Details

.call(slug:) ⇒ Object



4
5
6
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 4

def self.call(slug:)
  new(slug:).call
end

Instance Method Details

#callObject



12
13
14
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 12

def call
  get_story
end