Class: PagePost
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PagePost
- Defined in:
- lib/wpb/pagepost.rb
Instance Method Summary collapse
-
#content ⇒ Object
Grab the content of the selected page/post.
-
#content=(new_content) ⇒ Object
Set the content of the selected page/post.
-
#title ⇒ Object
Grab the title of the selected page/post.
-
#title=(new_title) ⇒ Object
Set the title of the selected page/post.
Instance Method Details
#content ⇒ Object
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 |
#title ⇒ Object
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 |