Exception: Aspera::Cli::SchemaRequest

Inherits:
Error
  • Object
show all
Defined in:
lib/aspera/cli/manager.rb

Overview

Exception raised when schema is asked (‘help`)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, schema_path) ⇒ SchemaRequest

Returns a new instance of SchemaRequest.

Parameters:

  • type (Symbol)

    :argument or :option

  • name (String)

    name of the option/argument

  • schema_path (String, nil)

    path to schema file, or ‘nil` if not available



23
24
25
26
# File 'lib/aspera/cli/manager.rb', line 23

def initialize(type, name, schema_path)
  super("#{type}: #{name}")
  @path = schema_path
end

Instance Attribute Details

#pathString? (readonly)

Returns path to schema file.

Returns:

  • (String, nil)

    path to schema file



18
19
20
# File 'lib/aspera/cli/manager.rb', line 18

def path
  @path
end