Exception: Ridley::Errors::CommandNotProvided

Inherits:
RemoteCommandError show all
Defined in:
lib/ridley/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connector_type) ⇒ CommandNotProvided

Returns a new instance of CommandNotProvided.



57
58
59
# File 'lib/ridley/errors.rb', line 57

def initialize(connector_type)
  @connector_type = connector_type
end

Instance Attribute Details

#connector_typeObject (readonly)

Returns the value of attribute connector_type.



54
55
56
# File 'lib/ridley/errors.rb', line 54

def connector_type
  @connector_type
end

Instance Method Details

#to_sObject



61
62
63
# File 'lib/ridley/errors.rb', line 61

def to_s
  "No command provided in #{connector_type.inspect}, however the #{connector_type.inspect} connector was selected."
end