Class: MovieInfo
- Inherits:
-
Object
- Object
- MovieInfo
- Defined in:
- lib/model/movie_info.rb
Instance Attribute Summary collapse
-
#age_rating ⇒ Object
Returns the value of attribute age_rating.
-
#cast ⇒ Object
Returns the value of attribute cast.
-
#directed_by ⇒ Object
Returns the value of attribute directed_by.
-
#genre ⇒ Object
Returns the value of attribute genre.
-
#image ⇒ Object
Returns the value of attribute image.
-
#name ⇒ Object
Returns the value of attribute name.
-
#omelete_id ⇒ Object
Returns the value of attribute omelete_id.
-
#release_date ⇒ Object
Returns the value of attribute release_date.
-
#runtime ⇒ Object
Returns the value of attribute runtime.
-
#synopsis ⇒ Object
Returns the value of attribute synopsis.
Instance Method Summary collapse
-
#initialize(omelete_id, name) ⇒ MovieInfo
constructor
A new instance of MovieInfo.
Constructor Details
#initialize(omelete_id, name) ⇒ MovieInfo
Returns a new instance of MovieInfo.
5 6 7 |
# File 'lib/model/movie_info.rb', line 5 def initialize(omelete_id, name) self.omelete_id, self.name = omelete_id, name end |
Instance Attribute Details
#age_rating ⇒ Object
Returns the value of attribute age_rating.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def @age_rating end |
#cast ⇒ Object
Returns the value of attribute cast.
3 4 5 |
# File 'lib/model/movie_info.rb', line 3 def cast @cast end |
#directed_by ⇒ Object
Returns the value of attribute directed_by.
3 4 5 |
# File 'lib/model/movie_info.rb', line 3 def directed_by @directed_by end |
#genre ⇒ Object
Returns the value of attribute genre.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def genre @genre end |
#image ⇒ Object
Returns the value of attribute image.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def image @image end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def name @name end |
#omelete_id ⇒ Object
Returns the value of attribute omelete_id.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def omelete_id @omelete_id end |
#release_date ⇒ Object
Returns the value of attribute release_date.
3 4 5 |
# File 'lib/model/movie_info.rb', line 3 def release_date @release_date end |
#runtime ⇒ Object
Returns the value of attribute runtime.
2 3 4 |
# File 'lib/model/movie_info.rb', line 2 def runtime @runtime end |
#synopsis ⇒ Object
Returns the value of attribute synopsis.
3 4 5 |
# File 'lib/model/movie_info.rb', line 3 def synopsis @synopsis end |