Class: Backlog::Object::Timeline

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



170
171
172
# File 'lib/backlog/object.rb', line 170

def content
  @content
end

#issueObject (readonly)

Returns the value of attribute issue.



170
171
172
# File 'lib/backlog/object.rb', line 170

def issue
  @issue
end

#typeObject (readonly)

Returns the value of attribute type.



170
171
172
# File 'lib/backlog/object.rb', line 170

def type
  @type
end

#updated_onObject (readonly)

Returns the value of attribute updated_on.



170
171
172
# File 'lib/backlog/object.rb', line 170

def updated_on
  @updated_on
end

#userObject (readonly)

Returns the value of attribute user.



170
171
172
# File 'lib/backlog/object.rb', line 170

def user
  @user
end