Class: Pressy::RenderedPost

Inherits:
Struct
  • Object
show all
Defined in:
lib/pressy/post_renderer.rb

Overview

A RenderedPost represents a post as it is represented in a Store.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns The rendered text content of the post

Returns:

  • The rendered text content of the post



118
119
# File 'lib/pressy/post_renderer.rb', line 118

class Pressy::RenderedPost < Struct.new(:path, :content, :digest)
end

#digestObject

Returns The SHA256 hash of the post content

Returns:

  • The SHA256 hash of the post content



118
119
# File 'lib/pressy/post_renderer.rb', line 118

class Pressy::RenderedPost < Struct.new(:path, :content, :digest)
end

#pathObject

Returns The file path where the post is stored

Returns:

  • The file path where the post is stored



118
119
# File 'lib/pressy/post_renderer.rb', line 118

class Pressy::RenderedPost < Struct.new(:path, :content, :digest)
end