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.



10
11
12
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 10

def initialize(slug:)
  @slug = slug
end

Class Method Details

.call(slug:) ⇒ Object



6
7
8
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 6

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

Instance Method Details

#callObject



14
15
16
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 14

def call
  get_story
end