Class: HornOfPlenty::Models::Lane
- Inherits:
-
Object
- Object
- HornOfPlenty::Models::Lane
- Includes:
- Parsable
- Defined in:
- lib/horn_of_plenty/models/lane.rb
Instance Attribute Summary
Attributes included from Parsable
Instance Method Summary collapse
Methods included from Parsable
Instance Method Details
#to_h ⇒ Object
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_sha ⇒ Object
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 |