Class: GoogleMovies::Movie
- Inherits:
-
Object
- Object
- GoogleMovies::Movie
- Defined in:
- lib/google_movies/models/movie.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#information ⇒ Object
Returns the value of attribute information.
-
#name ⇒ Object
Returns the value of attribute name.
-
#times ⇒ Object
Returns the value of attribute times.
Instance Method Summary collapse
-
#initialize(name, id, information, times) ⇒ Movie
constructor
A new instance of Movie.
Constructor Details
#initialize(name, id, information, times) ⇒ Movie
Returns a new instance of Movie.
6 7 8 9 10 11 |
# File 'lib/google_movies/models/movie.rb', line 6 def initialize(name, id, information, times) @name = name @id = id @information = information.gsub("- Trailer - IMDb - : ", "").strip @times = times end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/google_movies/models/movie.rb', line 4 def id @id end |
#information ⇒ Object
Returns the value of attribute information.
4 5 6 |
# File 'lib/google_movies/models/movie.rb', line 4 def information @information end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/google_movies/models/movie.rb', line 4 def name @name end |
#times ⇒ Object
Returns the value of attribute times.
4 5 6 |
# File 'lib/google_movies/models/movie.rb', line 4 def times @times end |