Class: Post

Inherits:
Object
  • Object
show all
Defined in:
lib/models/post.rb

Overview

An object representing a post on the Jekyll website

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePost



27
28
29
# File 'lib/models/post.rb', line 27

def initialize
  @images = []
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



15
16
17
# File 'lib/models/post.rb', line 15

def author
  @author
end

#contentsObject

Returns the value of attribute contents.



18
19
20
# File 'lib/models/post.rb', line 18

def contents
  @contents
end

#file_pathObject

Path to the markdown post starting at the root of the repository



21
22
23
# File 'lib/models/post.rb', line 21

def file_path
  @file_path
end

#github_refObject

The GitHub ref the post’s markdown is at. This is used to indicate whether a post is in PR or not



24
25
26
# File 'lib/models/post.rb', line 24

def github_ref
  @github_ref
end

#heroObject

Returns the value of attribute hero.



16
17
18
# File 'lib/models/post.rb', line 16

def hero
  @hero
end

#imagesObject

Returns the value of attribute images.



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

def images
  @images
end

#overlayObject

Returns the value of attribute overlay.



17
18
19
# File 'lib/models/post.rb', line 17

def overlay
  @overlay
end

#tagsObject

Returns the value of attribute tags.



19
20
21
# File 'lib/models/post.rb', line 19

def tags
  @tags
end

#titleObject

Returns the value of attribute title.



14
15
16
# File 'lib/models/post.rb', line 14

def title
  @title
end