Class: Acme::Smileage::Blog::Entry::Body
- Inherits:
-
Object
- Object
- Acme::Smileage::Blog::Entry::Body
- Defined in:
- lib/acme/smileage/blog/entry.rb
Instance Attribute Summary collapse
-
#comment_link ⇒ Object
Returns the value of attribute comment_link.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#image_links ⇒ Object
Returns the value of attribute image_links.
-
#next_entry_link ⇒ Object
Returns the value of attribute next_entry_link.
-
#prev_entry_link ⇒ Object
Returns the value of attribute prev_entry_link.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize {|_self| ... } ⇒ Body
Returns a new instance of Body.
32 33 34 35 36 |
# File 'lib/acme/smileage/blog/entry.rb', line 32 def initialize self.image_links = [] self.comments = [] yield self if block_given? end |
Instance Attribute Details
#comment_link ⇒ Object
Returns the value of attribute comment_link.
28 29 30 |
# File 'lib/acme/smileage/blog/entry.rb', line 28 def comment_link @comment_link end |
#comments ⇒ Object
Returns the value of attribute comments.
30 31 32 |
# File 'lib/acme/smileage/blog/entry.rb', line 30 def comments @comments end |
#image_links ⇒ Object
Returns the value of attribute image_links.
29 30 31 |
# File 'lib/acme/smileage/blog/entry.rb', line 29 def image_links @image_links end |
#next_entry_link ⇒ Object
Returns the value of attribute next_entry_link.
28 29 30 |
# File 'lib/acme/smileage/blog/entry.rb', line 28 def next_entry_link @next_entry_link end |
#prev_entry_link ⇒ Object
Returns the value of attribute prev_entry_link.
28 29 30 |
# File 'lib/acme/smileage/blog/entry.rb', line 28 def prev_entry_link @prev_entry_link end |
#text ⇒ Object
Returns the value of attribute text.
27 28 29 |
# File 'lib/acme/smileage/blog/entry.rb', line 27 def text @text end |