Exception: MediaplugError
- Inherits:
-
StandardError
- Object
- StandardError
- MediaplugError
- Defined in:
- lib/mediaplug/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ MediaplugError
constructor
A new instance of MediaplugError.
Constructor Details
#initialize(msg, code) ⇒ MediaplugError
Returns a new instance of MediaplugError.
36 37 38 39 |
# File 'lib/mediaplug/client.rb', line 36 def initialize(msg, code) @code = code super("#{msg} - '#{code}'") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
34 35 36 |
# File 'lib/mediaplug/client.rb', line 34 def code @code end |