Exception: Notu::UnknownUsernameError
- Defined in:
- lib/notu/unknown_username_error.rb
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(username) ⇒ UnknownUsernameError
constructor
A new instance of UnknownUsernameError.
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
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/notu/unknown_username_error.rb', line 5 def username @username end |