Class: GoogleMovies::MovieTheater

Inherits:
Object
  • Object
show all
Defined in:
lib/google_movies/models/movie_theater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/google_movies/models/movie_theater.rb', line 4

def address
  @address
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/google_movies/models/movie_theater.rb', line 4

def id
  @id
end

#moviesObject

Returns the value of attribute movies.



4
5
6
# File 'lib/google_movies/models/movie_theater.rb', line 4

def movies
  @movies
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/google_movies/models/movie_theater.rb', line 4

def name
  @name
end