Class: ComingSoon::Movie

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

Constant Summary collapse

@@movies =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMovie

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/coming_soon/movie.rb', line 4

def name
  @name
end

#start_dateObject

Returns the value of attribute start_date.



4
5
6
# File 'lib/coming_soon/movie.rb', line 4

def start_date
  @start_date
end

#synopsisObject

Returns the value of attribute synopsis.



4
5
6
# File 'lib/coming_soon/movie.rb', line 4

def synopsis
  @synopsis
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/coming_soon/movie.rb', line 4

def url
  @url
end

Class Method Details

.moviesObject



14
15
16
17
18
# File 'lib/coming_soon/movie.rb', line 14

def self.movies

	@@movies

end