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

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

Instance Method Summary collapse

Instance Method Details

#resultObject



20
21
22
# File 'lib/convenient_service/examples/rails/v1/gemfile/services/read_file_content.rb', line 20

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