Exception: Lastfm::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/lastfm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ ApiError

Returns a new instance of ApiError


32
33
34
35
# File 'lib/lastfm.rb', line 32

def initialize(message, code = nil)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code


30
31
32
# File 'lib/lastfm.rb', line 30

def code
  @code
end