6 lines
120 B
Ruby
6 lines
120 B
Ruby
|
class Article
|
||
|
attr_accessor :id, :title, :body
|
||
|
def initialize
|
||
|
@id, @title, @body = 1, 'Hello', 'World'
|
||
|
end
|
||
|
end
|