Exception: MachineGun::Error
- Inherits:
-
StandardError
- Object
- StandardError
- MachineGun::Error
- Defined in:
- lib/machine-gun.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
19 20 21 22 |
# File 'lib/machine-gun.rb', line 19 def initialize(code, ) super @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
17 18 19 |
# File 'lib/machine-gun.rb', line 17 def code @code end |