Class: KudagoClient::Entities::MovieShowing
- Inherits:
-
Object
- Object
- KudagoClient::Entities::MovieShowing
- Defined in:
- lib/kudago_client/entities/movie_showing.rb
Instance Attribute Summary collapse
-
#datetime ⇒ Object
Returns the value of attribute datetime.
-
#four_dx ⇒ Object
Returns the value of attribute four_dx.
-
#id ⇒ Object
Returns the value of attribute id.
-
#imax ⇒ Object
Returns the value of attribute imax.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#movie ⇒ Object
Returns the value of attribute movie.
-
#original_language ⇒ Object
Returns the value of attribute original_language.
-
#place ⇒ Object
Returns the value of attribute place.
-
#price ⇒ Object
Returns the value of attribute price.
-
#three_d ⇒ Object
Returns the value of attribute three_d.
Instance Method Summary collapse
-
#initialize(lang:, id: nil, movie: nil, place: nil, datetime: nil, three_d: false, imax: false, four_dx: false, original_language: nil, price: nil) ⇒ MovieShowing
constructor
A new instance of MovieShowing.
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
#datetime ⇒ Object
Returns the value of attribute datetime.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def datetime @datetime end |
#four_dx ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def id @id end |
#imax ⇒ Object
Returns the value of attribute imax.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def imax @imax end |
#lang ⇒ Object
Returns the value of attribute lang.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def lang @lang end |
#movie ⇒ Object
Returns the value of attribute movie.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def movie @movie end |
#original_language ⇒ Object
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 |
#place ⇒ Object
Returns the value of attribute place.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def place @place end |
#price ⇒ Object
Returns the value of attribute price.
8 9 10 |
# File 'lib/kudago_client/entities/movie_showing.rb', line 8 def price @price end |
#three_d ⇒ Object
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 |