Class: Aspera::Cli::Result::Image
- Inherits:
-
Result
- Object
- Result
- Aspera::Cli::Result::Image
- Defined in:
- lib/aspera/cli/result.rb
Overview
Image result (URL or blob)
Instance Method Summary collapse
- #format(formatter) ⇒ Object
-
#initialize(data) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(data) ⇒ Image
Returns a new instance of Image.
185 186 187 188 |
# File 'lib/aspera/cli/result.rb', line 185 def initialize(data) Aspera.assert_type(data, String, NilClass){'image result data'} super(data: data) end |
Instance Method Details
#format(formatter) ⇒ Object
190 191 192 193 194 |
# File 'lib/aspera/cli/result.rb', line 190 def format(formatter) # Force image format for Image results formatter.set_format_type(:image) super end |