class HornOfPlenty::Models::Board

Public Instance Methods

to_h() click to toggle source
# File lib/horn_of_plenty/models/board.rb, line 16
def to_h
  {
    id:          id,
    author_id:   author_id,
    title:       title,
    description: description,
    created_at:  created_at,
    updated_at:  updated_at,
  }
end
to_sha() click to toggle source
# File lib/horn_of_plenty/models/board.rb, line 27
def to_sha
  @sha ||= Digest::SHA2.hexdigest(to_h.to_s)
end