Class: Ridley::Errors::CommandNotProvided

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connector_type) ⇒ CommandNotProvided

Returns a new instance of CommandNotProvided.



20
21
22
# File 'lib/ridley-connectors/errors.rb', line 20

def initialize(connector_type)
  @connector_type = connector_type
end

Instance Attribute Details

#connector_typeObject (readonly)

Returns the value of attribute connector_type.



17
18
19
# File 'lib/ridley-connectors/errors.rb', line 17

def connector_type
  @connector_type
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/ridley-connectors/errors.rb', line 24

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