Class: GoogleMovies::MovieTheater
- Inherits:
-
Object
- Object
- GoogleMovies::MovieTheater
- Defined in:
- lib/google_movies/models/movie_theater.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#id ⇒ Object
Returns the value of attribute id.
-
#movies ⇒ Object
Returns the value of attribute movies.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, address, id, movies = []) ⇒ MovieTheater
constructor
A new instance of MovieTheater.
Constructor Details
#initialize(name, address, id, movies = []) ⇒ MovieTheater
Returns a new instance of MovieTheater.
6 7 8 9 10 11 |
# File 'lib/google_movies/models/movie_theater.rb', line 6 def initialize(name, address, id, movies = []) @movies = movies @name = name @address = address @id = id end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/google_movies/models/movie_theater.rb', line 4 def address @address end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/google_movies/models/movie_theater.rb', line 4 def id @id end |
#movies ⇒ Object
Returns the value of attribute movies.
4 5 6 |
# File 'lib/google_movies/models/movie_theater.rb', line 4 def movies @movies end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/google_movies/models/movie_theater.rb', line 4 def name @name end |