Class: Rotoworld::Post

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

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePost

Returns a new instance of Post.



13
14
15
# File 'lib/Post.rb', line 13

def initialize
  @@all<<self
end

Instance Attribute Details

#headlineObject

Returns the value of attribute headline.



6
7
8
# File 'lib/Post.rb', line 6

def headline
  @headline
end

#impactObject

Returns the value of attribute impact.



6
7
8
# File 'lib/Post.rb', line 6

def impact
  @impact
end

#indexObject

Returns the value of attribute index.



6
7
8
# File 'lib/Post.rb', line 6

def index
  @index
end

#sourceObject

Returns the value of attribute source.



6
7
8
# File 'lib/Post.rb', line 6

def source
  @source
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/Post.rb', line 6

def title
  @title
end

Class Method Details

.allObject



17
18
19
# File 'lib/Post.rb', line 17

def self.all
  @@all
end