Class: Acme::Smileage::Blog::Entry::Header
- Inherits:
-
Object
- Object
- Acme::Smileage::Blog::Entry::Header
- Defined in:
- lib/acme/smileage/blog/entry.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#comment_count ⇒ Object
Returns the value of attribute comment_count.
-
#datetime ⇒ Object
Returns the value of attribute datetime.
-
#good_count ⇒ Object
Returns the value of attribute good_count.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(blog) {|_self| ... } ⇒ Header
constructor
A new instance of Header.
Constructor Details
#initialize(blog) {|_self| ... } ⇒ Header
Returns a new instance of Header.
21 22 23 |
# File 'lib/acme/smileage/blog/entry.rb', line 21 def initialize(blog) yield self if block_given? end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
19 20 21 |
# File 'lib/acme/smileage/blog/entry.rb', line 19 def @author end |
#comment_count ⇒ Object
Returns the value of attribute comment_count.
18 19 20 |
# File 'lib/acme/smileage/blog/entry.rb', line 18 def comment_count @comment_count end |
#datetime ⇒ Object
Returns the value of attribute datetime.
17 18 19 |
# File 'lib/acme/smileage/blog/entry.rb', line 17 def datetime @datetime end |
#good_count ⇒ Object
Returns the value of attribute good_count.
18 19 20 |
# File 'lib/acme/smileage/blog/entry.rb', line 18 def good_count @good_count end |
#link ⇒ Object
Returns the value of attribute link.
17 18 19 |
# File 'lib/acme/smileage/blog/entry.rb', line 17 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
17 18 19 |
# File 'lib/acme/smileage/blog/entry.rb', line 17 def title @title end |