Class: Acme::Smileage::Blog::Entry::Body

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Body

Returns a new instance of Body.

Yields:

  • (_self)

Yield Parameters:



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

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

#commentsObject

Returns the value of attribute comments.



30
31
32
# File 'lib/acme/smileage/blog/entry.rb', line 30

def comments
  @comments
end

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_linkObject

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_linkObject

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

#textObject

Returns the value of attribute text.



27
28
29
# File 'lib/acme/smileage/blog/entry.rb', line 27

def text
  @text
end