mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-06-23 04:44:54 +00:00
13 lines
285 B
Ruby
13 lines
285 B
Ruby
require "dry-struct"
|
|
require "pressa/site"
|
|
|
|
module Pressa
|
|
class Drafts
|
|
class Entry < Dry::Struct
|
|
attribute :slug, Types::String
|
|
attribute :title, Types::String
|
|
attribute :timestamp, Types::Params::DateTime
|
|
attribute :path, Types::String
|
|
end
|
|
end
|
|
end
|