Exception: Simple::Service::ExtraArguments
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- Simple::Service::ExtraArguments
- Defined in:
- lib/simple/service/errors.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(action, arguments) ⇒ ExtraArguments
constructor
A new instance of ExtraArguments.
- #to_s ⇒ Object
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
#action ⇒ Object (readonly)
Returns the value of attribute action
33 34 35 |
# File 'lib/simple/service/errors.rb', line 33 def action @action end |
#arguments ⇒ Object (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_s ⇒ Object
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 |