Class: NewYorkFilms::Screening
- Inherits:
-
Object
- Object
- NewYorkFilms::Screening
- Defined in:
- lib/new_york_films/screening.rb
Instance Attribute Summary collapse
-
#director ⇒ Object
Returns the value of attribute director.
-
#length ⇒ Object
Returns the value of attribute length.
-
#location ⇒ Object
Returns the value of attribute location.
-
#theater ⇒ Object
Returns the value of attribute theater.
-
#times ⇒ Object
Returns the value of attribute times.
-
#title ⇒ Object
Returns the value of attribute title.
-
#website ⇒ Object
Returns the value of attribute website.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Screening
constructor
A new instance of Screening.
Constructor Details
#initialize(attributes = {}) ⇒ Screening
Returns a new instance of Screening.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/new_york_films/screening.rb', line 3 def initialize(attributes = {}) @theater = attributes[:theater] @title = attributes[:title] @director = attributes[:director] @times = attributes[:times] @year = attributes[:year] @length = attributes[:length] @website = attributes[:website] @location = attributes[:location] end |
Instance Attribute Details
#director ⇒ Object
Returns the value of attribute director.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def director @director end |
#length ⇒ Object
Returns the value of attribute length.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def length @length end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def location @location end |
#theater ⇒ Object
Returns the value of attribute theater.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def theater @theater end |
#times ⇒ Object
Returns the value of attribute times.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def times @times end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def title @title end |
#website ⇒ Object
Returns the value of attribute website.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def website @website end |
#year ⇒ Object
Returns the value of attribute year.
2 3 4 |
# File 'lib/new_york_films/screening.rb', line 2 def year @year end |