Class: Pirata::User
- Inherits:
-
Object
- Object
- Pirata::User
- Defined in:
- lib/pirata/user.rb
Instance Attribute Summary collapse
-
#profile_url ⇒ Object
readonly
Returns the value of attribute profile_url.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username) ⇒ User
constructor
A new instance of User.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#profile_url ⇒ Object (readonly)
Returns the value of attribute profile_url.
4 5 6 |
# File 'lib/pirata/user.rb', line 4 def profile_url @profile_url end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/pirata/user.rb', line 4 def username @username end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/pirata/user.rb', line 11 def to_s @username end |