Class: Blog

Inherits:
Object
  • Object
show all
Defined in:
lib/hurricane.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlog

Returns a new instance of Blog.



34
35
36
37
# File 'lib/hurricane.rb', line 34

def initialize
	@categories = Array.new
	@posts = Array.new
end

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories.



38
39
40
# File 'lib/hurricane.rb', line 38

def categories
  @categories
end

#created_atObject

Returns the value of attribute created_at.



38
39
40
# File 'lib/hurricane.rb', line 38

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



38
39
40
# File 'lib/hurricane.rb', line 38

def description
  @description
end

Returns the value of attribute link.



38
39
40
# File 'lib/hurricane.rb', line 38

def link
  @link
end

#postsObject

Returns the value of attribute posts.



38
39
40
# File 'lib/hurricane.rb', line 38

def posts
  @posts
end

#titleObject

Returns the value of attribute title.



38
39
40
# File 'lib/hurricane.rb', line 38

def title
  @title
end