Class: Article

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title) ⇒ Article

Returns a new instance of Article.



5
6
7
# File 'lib/article.rb', line 5

def initialize(title)
    @title = title
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



2
3
4
# File 'lib/article.rb', line 2

def category
  @category
end

#contentObject

Returns the value of attribute content.



2
3
4
# File 'lib/article.rb', line 2

def content
  @content
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/article.rb', line 3

def title
  @title
end