Class: Gumroad::User
- Inherits:
-
Object
- Object
- Gumroad::User
- Defined in:
- lib/gumroad/user.rb
Instance Attribute Summary collapse
-
#bio ⇒ Object
readonly
Returns the value of attribute bio.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attrs) ⇒ User
Returns a new instance of User.
10 11 12 13 14 15 |
# File 'lib/gumroad/user.rb', line 10 def initialize(attrs) @name = attrs['name'] @id = attrs['id'] @bio = attrs['bio'] @email = attrs['email'] end |
Instance Attribute Details
#bio ⇒ Object (readonly)
Returns the value of attribute bio.
8 9 10 |
# File 'lib/gumroad/user.rb', line 8 def bio @bio end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/gumroad/user.rb', line 8 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/gumroad/user.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/gumroad/user.rb', line 8 def name @name end |