Class: ConvenientService::Examples::Standard::Gemfile::Services::FormatBody

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/gemfile/services/format_body.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed_content:) ⇒ FormatBody

Returns a new instance of FormatBody.



65
66
67
# File 'lib/convenient_service/examples/standard/gemfile/services/format_body.rb', line 65

def initialize(parsed_content:)
  @parsed_content = parsed_content
end

Instance Attribute Details

#parsed_contentObject (readonly)

Returns the value of attribute parsed_content.



51
52
53
# File 'lib/convenient_service/examples/standard/gemfile/services/format_body.rb', line 51

def parsed_content
  @parsed_content
end

Instance Method Details

#resultObject



69
70
71
# File 'lib/convenient_service/examples/standard/gemfile/services/format_body.rb', line 69

def result
  success(formatted_content: format_content)
end