Class: ComingSoon::Movie
- Inherits:
-
Object
- Object
- ComingSoon::Movie
- Defined in:
- lib/coming_soon/movie.rb
Constant Summary collapse
- @@movies =
[]
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#synopsis ⇒ Object
Returns the value of attribute synopsis.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Movie
constructor
A new instance of Movie.
Constructor Details
#initialize ⇒ Movie
Returns a new instance of Movie.
8 9 10 11 12 |
# File 'lib/coming_soon/movie.rb', line 8 def initialize @@movies << self end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/coming_soon/movie.rb', line 4 def name @name end |
#start_date ⇒ Object
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/coming_soon/movie.rb', line 4 def start_date @start_date end |
#synopsis ⇒ Object
Returns the value of attribute synopsis.
4 5 6 |
# File 'lib/coming_soon/movie.rb', line 4 def synopsis @synopsis end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/coming_soon/movie.rb', line 4 def url @url end |
Class Method Details
.movies ⇒ Object
14 15 16 17 18 |
# File 'lib/coming_soon/movie.rb', line 14 def self.movies @@movies end |