Exception: MediaplugError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mediaplug/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



34
35
36
# File 'lib/mediaplug/client.rb', line 34

def code
  @code
end