Class: PagePost

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/wpb/pagepost.rb

Direct Known Subclasses

Page, Post

Instance Method Summary collapse

Instance Method Details

#contentObject

Grab the content of the selected page/post



31
32
33
# File 'lib/wpb/pagepost.rb', line 31

def content
	post_content
end

#content=(new_content) ⇒ Object

Set the content of the selected page/post



38
39
40
# File 'lib/wpb/pagepost.rb', line 38

def content= new_content
	self.post_content = new_content
end

#titleObject

Grab the title of the selected page/post



17
18
19
# File 'lib/wpb/pagepost.rb', line 17

def title
	post_title
end

#title=(new_title) ⇒ Object

Set the title of the selected page/post



24
25
26
# File 'lib/wpb/pagepost.rb', line 24

def title= new_title
	self.post_title = new_title
end