Class: HornOfPlenty::Models::Lane

Inherits:
Object
  • Object
show all
Includes:
Parsable
Defined in:
lib/horn_of_plenty/models/lane.rb

Instance Attribute Summary

Attributes included from Parsable

#parser

Instance Method Summary collapse

Methods included from Parsable

included, #initialize

Instance Method Details

#to_hObject



15
16
17
18
19
20
21
22
23
# File 'lib/horn_of_plenty/models/lane.rb', line 15

def to_h
  {
    id:         id,
    board_id:   board_id,
    title:      title,
    created_at: created_at,
    updated_at: updated_at,
  }
end

#to_shaObject



25
26
27
# File 'lib/horn_of_plenty/models/lane.rb', line 25

def to_sha
  @sha ||= Digest::SHA2.hexdigest(to_h.to_s)
end