class HornOfPlenty::Models::Issue
Public Instance Methods
to_h()
click to toggle source
# File lib/horn_of_plenty/models/issue.rb, line 23 def to_h { id: id, author_id: author_id, assignee_ids: assignee_ids, closer_id: closer_id, repository: repository, status: status, title: title, description: description, labels: labels, closed_at: closed_at, has_pull_request: has_pull_request?, created_at: created_at, updated_at: updated_at, } end
to_sha()
click to toggle source
# File lib/horn_of_plenty/models/issue.rb, line 41 def to_sha @sha ||= Digest::SHA2.hexdigest(to_h.to_s) end