Class: Samer::User
- Inherits:
-
Object
- Object
- Samer::User
- Defined in:
- lib/samer/user.rb
Instance Attribute Summary collapse
-
#music ⇒ Object
readonly
Returns the value of attribute music.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, music) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(name, music) ⇒ User
6 7 8 9 |
# File 'lib/samer/user.rb', line 6 def initialize name, music @name = name @music = music end |
Instance Attribute Details
#music ⇒ Object (readonly)
Returns the value of attribute music.
4 5 6 |
# File 'lib/samer/user.rb', line 4 def music @music end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/samer/user.rb', line 4 def name @name end |