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

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard::V1
Defined in:
lib/convenient_service/examples/standard/v1/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.



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

def initialize(parsed_content:)
  @parsed_content = parsed_content
end

Instance Attribute Details

#parsed_contentObject (readonly)

Returns the value of attribute parsed_content.



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

def parsed_content
  @parsed_content
end

Instance Method Details

#resultObject



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

def result
  success(formatted_content: format_content)
end