Class: Backlog::Object::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment) ⇒ Comment

Returns a new instance of Comment.



152
153
154
155
156
157
158
# File 'lib/backlog/object.rb', line 152

def initialize(comment)
  @id = comment['id']
  @content = comment['content']
  @created_user = User.new(comment['created_user'])
  @created_on = comment['created_on']
  @updated_on = comment['updated_on']
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



159
160
161
# File 'lib/backlog/object.rb', line 159

def content
  @content
end

#created_onObject (readonly)

Returns the value of attribute created_on.



159
160
161
# File 'lib/backlog/object.rb', line 159

def created_on
  @created_on
end

#created_userObject (readonly)

Returns the value of attribute created_user.



159
160
161
# File 'lib/backlog/object.rb', line 159

def created_user
  @created_user
end

#idObject (readonly)

Returns the value of attribute id.



159
160
161
# File 'lib/backlog/object.rb', line 159

def id
  @id
end

#updated_onObject (readonly)

Returns the value of attribute updated_on.



159
160
161
# File 'lib/backlog/object.rb', line 159

def updated_on
  @updated_on
end