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.



59
60
61
# File 'lib/ridley/errors.rb', line 59

def initialize(connector_type)
  @connector_type = connector_type
end

Instance Attribute Details

#connector_typeObject (readonly)

Returns the value of attribute connector_type.



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

def connector_type
  @connector_type
end

Instance Method Details

#to_sObject



63
64
65
# File 'lib/ridley/errors.rb', line 63

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