Class: Backlog::Object::Comment
- Inherits:
-
Object
- Object
- Backlog::Object::Comment
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#created_user ⇒ Object
readonly
Returns the value of attribute created_user.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#updated_on ⇒ Object
readonly
Returns the value of attribute updated_on.
Instance Method Summary collapse
-
#initialize(comment) ⇒ Comment
constructor
A new instance of Comment.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
159 160 161 |
# File 'lib/backlog/object.rb', line 159 def content @content end |
#created_on ⇒ Object (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_user ⇒ Object (readonly)
Returns the value of attribute created_user.
159 160 161 |
# File 'lib/backlog/object.rb', line 159 def created_user @created_user end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
159 160 161 |
# File 'lib/backlog/object.rb', line 159 def id @id end |
#updated_on ⇒ Object (readonly)
Returns the value of attribute updated_on.
159 160 161 |
# File 'lib/backlog/object.rb', line 159 def updated_on @updated_on end |