Class: Rotoworld::Post
- Inherits:
-
Object
- Object
- Rotoworld::Post
- Defined in:
- lib/Post.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#headline ⇒ Object
Returns the value of attribute headline.
-
#impact ⇒ Object
Returns the value of attribute impact.
-
#index ⇒ Object
Returns the value of attribute index.
-
#source ⇒ Object
Returns the value of attribute source.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Post
constructor
A new instance of Post.
Constructor Details
#initialize ⇒ Post
Returns a new instance of Post.
13 14 15 |
# File 'lib/Post.rb', line 13 def initialize @@all<<self end |
Instance Attribute Details
#headline ⇒ Object
Returns the value of attribute headline.
6 7 8 |
# File 'lib/Post.rb', line 6 def headline @headline end |
#impact ⇒ Object
Returns the value of attribute impact.
6 7 8 |
# File 'lib/Post.rb', line 6 def impact @impact end |
#index ⇒ Object
Returns the value of attribute index.
6 7 8 |
# File 'lib/Post.rb', line 6 def index @index end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/Post.rb', line 6 def source @source end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/Post.rb', line 6 def title @title end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'lib/Post.rb', line 17 def self.all @@all end |