Class: PicturehouseUk::Internal::Showtime Private

Inherits:
Object
  • Object
show all
Defined in:
lib/picturehouse_uk/internal/parser/screenings.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

parse an individual screening node

Instance Method Summary collapse

Constructor Details

#initialize(node, date) ⇒ Showtime

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Showtime.



133
134
135
136
# File 'lib/picturehouse_uk/internal/parser/screenings.rb', line 133

def initialize(node, date)
  @node = node
  @date = date
end

Instance Method Details

#to_hashObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



138
139
140
141
142
143
# File 'lib/picturehouse_uk/internal/parser/screenings.rb', line 138

def to_hash
  {
    booking_url: booking_url,
    starting_at: starting_at
  }
end