Class: Acme::Smileage::Blog::Entry::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/acme/smileage/blog/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(blog) {|_self| ... } ⇒ Header

Returns a new instance of Header.

Yields:

  • (_self)

Yield Parameters:



21
22
23
# File 'lib/acme/smileage/blog/entry.rb', line 21

def initialize(blog)
  yield self if block_given?
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



19
20
21
# File 'lib/acme/smileage/blog/entry.rb', line 19

def author
  @author
end

#comment_countObject

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

#datetimeObject

Returns the value of attribute datetime.



17
18
19
# File 'lib/acme/smileage/blog/entry.rb', line 17

def datetime
  @datetime
end

#good_countObject

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

Returns the value of attribute link.



17
18
19
# File 'lib/acme/smileage/blog/entry.rb', line 17

def link
  @link
end

#titleObject

Returns the value of attribute title.



17
18
19
# File 'lib/acme/smileage/blog/entry.rb', line 17

def title
  @title
end