Class: ConvenientService::Examples::Rails::V1::Gemfile::Services::ReadFileContent
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Rails::V1::Gemfile::Services::ReadFileContent
- Includes:
- RailsService::Config
- Defined in:
- lib/convenient_service/examples/rails/v1/gemfile/services/read_file_content.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
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 |