Class: ConvenientService::Examples::Dry::V1::Gemfile::Services::ReadFileContent

Inherits:
Object
  • Object
show all
Includes:
DryService::Config
Defined in:
lib/convenient_service/examples/dry/v1/gemfile/services/read_file_content.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



24
25
26
# File 'lib/convenient_service/examples/dry/v1/gemfile/services/read_file_content.rb', line 24

def result
  success(data: {content: ::File.read(path)})
end