Class: TalkTalkTV::Film
- Inherits:
-
Object
- Object
- TalkTalkTV::Film
- Defined in:
- lib/talktalk_tv/film.rb
Instance Attribute Summary collapse
-
#buy_price ⇒ Object
readonly
Returns the value of attribute buy_price.
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#release_year ⇒ Object
readonly
Returns the value of attribute release_year.
-
#rental_price ⇒ Object
readonly
Returns the value of attribute rental_price.
-
#running_time_in_minutes ⇒ Object
readonly
Returns the value of attribute running_time_in_minutes.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(title:, url: nil, image_url: nil, certificate: nil, release_year: nil, running_time_in_minutes: nil, buy_price: nil, rental_price: nil) ⇒ Film
constructor
A new instance of Film.
Constructor Details
#initialize(title:, url: nil, image_url: nil, certificate: nil, release_year: nil, running_time_in_minutes: nil, buy_price: nil, rental_price: nil) ⇒ Film
Returns a new instance of Film.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/talktalk_tv/film.rb', line 3 def initialize( title:, url: nil, image_url: nil, certificate: nil, release_year: nil, running_time_in_minutes: nil, buy_price: nil, rental_price: nil ) @title = title @url = url @image_url = image_url @certificate = certificate @release_year = release_year @running_time_in_minutes = running_time_in_minutes @buy_price = buy_price @rental_price = rental_price end |
Instance Attribute Details
#buy_price ⇒ Object (readonly)
Returns the value of attribute buy_price.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def buy_price @buy_price end |
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def certificate @certificate end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def image_url @image_url end |
#release_year ⇒ Object (readonly)
Returns the value of attribute release_year.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def release_year @release_year end |
#rental_price ⇒ Object (readonly)
Returns the value of attribute rental_price.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def rental_price @rental_price end |
#running_time_in_minutes ⇒ Object (readonly)
Returns the value of attribute running_time_in_minutes.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def running_time_in_minutes @running_time_in_minutes end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
23 24 25 |
# File 'lib/talktalk_tv/film.rb', line 23 def url @url end |