Class: Pansophy::Remote::ReadFileBody
- Inherits:
-
Object
- Object
- Pansophy::Remote::ReadFileBody
- Includes:
- Adamantium::Flat
- Defined in:
- lib/pansophy/remote/read_file_body.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(bucket, path) ⇒ ReadFileBody
constructor
A new instance of ReadFileBody.
Constructor Details
#initialize(bucket, path) ⇒ ReadFileBody
Returns a new instance of ReadFileBody.
6 7 8 9 |
# File 'lib/pansophy/remote/read_file_body.rb', line 6 def initialize(bucket, path) @bucket = bucket @pathname = Pathname.new(path) end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/pansophy/remote/read_file_body.rb', line 11 def call file.body end |