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.
187 188 189 190 |
# File 'lib/aspera/cli/result.rb', line 187 def initialize(data) Aspera.assert_type(data, String, NilClass){'image result data'} super(data: data) end |
Instance Method Details
#format(formatter) ⇒ Object
192 193 194 195 196 |
# File 'lib/aspera/cli/result.rb', line 192 def format(formatter) # Force image format for Image results formatter.format_type = :image super end |