class MineShipper::Redmine::Comment

Attributes

body[R]
created_at[R]
tracker[R]

Public Class Methods

new(json) click to toggle source
# File lib/mine-shipper/redmine.rb, line 77
def initialize(json)
  @json = json
  @tracker = "Redmine"
  @body = @json["notes"]
  @created_at = Time.parse(@json["created_on"])
end

Public Instance Methods

update(comment) click to toggle source
# File lib/mine-shipper/redmine.rb, line 84
def update(comment)
  return if updated?(comment)
  # TODO: There is no API to update a comment
  # https://www.redmine.org/issues/10171
end