Class: Rubyblok::Services::GetStoryblokStory
- Inherits:
-
Object
- Object
- Rubyblok::Services::GetStoryblokStory
- Defined in:
- lib/rubyblok/services/get_storyblok_story.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(slug:) ⇒ GetStoryblokStory
constructor
A new instance of GetStoryblokStory.
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
#call ⇒ Object
14 15 16 |
# File 'lib/rubyblok/services/get_storyblok_story.rb', line 14 def call get_story end |