Exception: Notu::UnknownUsernameError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(username) ⇒ UnknownUsernameError

Returns a new instance of UnknownUsernameError.



7
8
9
10
# File 'lib/notu/unknown_username_error.rb', line 7

def initialize(username)
  @username = username
  super("No such Last.fm username: #{self.username.inspect}")
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/notu/unknown_username_error.rb', line 5

def username
  @username
end