Class: NewYorkFilms::Screening

Inherits:
Object
  • Object
show all
Defined in:
lib/new_york_films/screening.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directorObject

Returns the value of attribute director.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def director
  @director
end

#lengthObject

Returns the value of attribute length.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def length
  @length
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def location
  @location
end

#theaterObject

Returns the value of attribute theater.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def theater
  @theater
end

#timesObject

Returns the value of attribute times.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def times
  @times
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def title
  @title
end

#websiteObject

Returns the value of attribute website.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def website
  @website
end

#yearObject

Returns the value of attribute year.



2
3
4
# File 'lib/new_york_films/screening.rb', line 2

def year
  @year
end