Class: Backlog::Object::User

Inherits:
Object
  • Object
show all
Defined in:
lib/backlog/object.rb

Direct Known Subclasses

DetailUser

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



47
48
49
# File 'lib/backlog/object.rb', line 47

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



47
48
49
# File 'lib/backlog/object.rb', line 47

def name
  @name
end