Exception: Simple::Service::ExtraArguments

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/simple/service/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, arguments) ⇒ ExtraArguments

Returns a new instance of ExtraArguments.



36
37
38
# File 'lib/simple/service/errors.rb', line 36

def initialize(action, arguments)
  @action, @arguments = action, arguments
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



33
34
35
# File 'lib/simple/service/errors.rb', line 33

def action
  @action
end

#argumentsObject (readonly)

Returns the value of attribute arguments.



34
35
36
# File 'lib/simple/service/errors.rb', line 34

def arguments
  @arguments
end

Instance Method Details

#to_sObject



40
41
42
43
# File 'lib/simple/service/errors.rb', line 40

def to_s
  str = @arguments.map(&:inspect).join(", ")
  "#{action}: extra argument(s) #{str}"
end