Class: Backlog::Object::User
- Inherits:
-
Object
- Object
- Backlog::Object::User
- Defined in:
- lib/backlog/object.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(user) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(user) ⇒ User
Returns a new instance of User.
43 44 45 46 |
# File 'lib/backlog/object.rb', line 43 def initialize(user) @id = user['id'] @name = user['name'] end |