Class: Hurricane::Blog
- Inherits:
-
Object
- Object
- Hurricane::Blog
- Defined in:
- lib/hurricane.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#link ⇒ Object
Returns the value of attribute link.
-
#posts ⇒ Object
Returns the value of attribute posts.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Blog
constructor
A new instance of Blog.
Constructor Details
#initialize ⇒ Blog
Returns a new instance of Blog.
36 37 38 39 |
# File 'lib/hurricane.rb', line 36 def initialize @categories = Array.new @posts = Array.new end |
Instance Attribute Details
#categories ⇒ Object
Returns the value of attribute categories.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def categories @categories end |
#created_at ⇒ Object
Returns the value of attribute created_at.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def description @description end |
#link ⇒ Object
Returns the value of attribute link.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def link @link end |
#posts ⇒ Object
Returns the value of attribute posts.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def posts @posts end |
#title ⇒ Object
Returns the value of attribute title.
40 41 42 |
# File 'lib/hurricane.rb', line 40 def title @title end |