Class: Hurricane::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.



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

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

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories.



40
41
42
# File 'lib/hurricane.rb', line 40

def categories
  @categories
end

#created_atObject

Returns the value of attribute created_at.



40
41
42
# File 'lib/hurricane.rb', line 40

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



40
41
42
# File 'lib/hurricane.rb', line 40

def description
  @description
end

Returns the value of attribute link.



40
41
42
# File 'lib/hurricane.rb', line 40

def link
  @link
end

#postsObject

Returns the value of attribute posts.



40
41
42
# File 'lib/hurricane.rb', line 40

def posts
  @posts
end

#titleObject

Returns the value of attribute title.



40
41
42
# File 'lib/hurricane.rb', line 40

def title
  @title
end