Class: Backlog::Object::Timeline
- Inherits:
-
Object
- Object
- Backlog::Object::Timeline
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#issue ⇒ Object
readonly
Returns the value of attribute issue.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_on ⇒ Object
readonly
Returns the value of attribute updated_on.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(timeline) ⇒ Timeline
constructor
A new instance of Timeline.
Constructor Details
#initialize(timeline) ⇒ Timeline
Returns a new instance of Timeline.
163 164 165 166 167 168 169 |
# File 'lib/backlog/object.rb', line 163 def initialize(timeline) @type = timeline['type'] ? ActivityType.new(timeline['type']) : nil @content = timeline['content'] @updated_on = timeline['updated_on'] @user = timeline['user'] ? User.new(timeline['user']) : nil @issue = timeline['issue'] ? Issue.new(timeline['issue']) : nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
170 171 172 |
# File 'lib/backlog/object.rb', line 170 def content @content end |
#issue ⇒ Object (readonly)
Returns the value of attribute issue.
170 171 172 |
# File 'lib/backlog/object.rb', line 170 def issue @issue end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
170 171 172 |
# File 'lib/backlog/object.rb', line 170 def type @type end |
#updated_on ⇒ Object (readonly)
Returns the value of attribute updated_on.
170 171 172 |
# File 'lib/backlog/object.rb', line 170 def updated_on @updated_on end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
170 171 172 |
# File 'lib/backlog/object.rb', line 170 def user @user end |