Class: KudagoClient::Entities::MovieShowing

Inherits:
Object
  • Object
show all
Defined in:
lib/kudago_client/entities/movie_showing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lang:, id: nil, movie: nil, place: nil, datetime: nil, three_d: false, imax: false, four_dx: false, original_language: nil, price: nil) ⇒ MovieShowing

Returns a new instance of MovieShowing.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/kudago_client/entities/movie_showing.rb', line 10

def initialize(lang:, id: nil, movie: nil, place: nil, datetime: nil, three_d: false, imax: false, four_dx: false, original_language: nil, price: nil)
  @lang = lang
  @id = id
  @price = price

  @three_d = three_d
  @imax = imax
  @four_dx = four_dx
  @original_language = original_language

  @movie = KudagoClient::Entities::Movie.new(**movie, lang: lang) if movie.present?
  @place = KudagoClient::Entities::Place.new(**place, lang: lang) if place.present?
  @datetime = Time.at(datetime).to_datetime if datetime.present?
end

Instance Attribute Details

#datetimeObject

Returns the value of attribute datetime.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def datetime
  @datetime
end

#four_dxObject

Returns the value of attribute four_dx.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def four_dx
  @four_dx
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def id
  @id
end

#imaxObject

Returns the value of attribute imax.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def imax
  @imax
end

#langObject

Returns the value of attribute lang.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def lang
  @lang
end

#movieObject

Returns the value of attribute movie.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def movie
  @movie
end

#original_languageObject

Returns the value of attribute original_language.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def original_language
  @original_language
end

#placeObject

Returns the value of attribute place.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def place
  @place
end

#priceObject

Returns the value of attribute price.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def price
  @price
end

#three_dObject

Returns the value of attribute three_d.



8
9
10
# File 'lib/kudago_client/entities/movie_showing.rb', line 8

def three_d
  @three_d
end