class HornOfPlenty::Models::Card

Public Instance Methods

labels() click to toggle source
# File lib/horn_of_plenty/models/card.rb, line 22
def labels
  @labels || []
end
status() click to toggle source
# File lib/horn_of_plenty/models/card.rb, line 26
def status
  @status || nil
end
to_h() click to toggle source
# File lib/horn_of_plenty/models/card.rb, line 30
def to_h
  {
    id:           id,
    lane_id:      lane_id,
    repository:   repository,
    status:       status,
    content_type: content_type,
    content_id:   content_id,
    title:        title,
    description:  description,
    labels:       labels,
    created_at:   created_at,
    updated_at:   updated_at,
  }
end
to_sha() click to toggle source
# File lib/horn_of_plenty/models/card.rb, line 46
def to_sha
  @sha ||= Digest::SHA2.hexdigest(to_h.to_s)
end