Class: CineworldUk::Internal::Parser::Api::CinemaAddress Private
- Inherits:
-
Object
- Object
- CineworldUk::Internal::Parser::Api::CinemaAddress
- Defined in:
- lib/cineworld_uk/internal/parser/api/cinema_address.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.
Parses a string to derive address
Instance Method Summary collapse
- #initialize(id) ⇒ CineworldUk::Internal::Parser::Api::CinemaAddress constructor private
-
#to_hash ⇒ Hash
private
:locality, :postal_code, :country.
Constructor Details
#initialize(id) ⇒ CineworldUk::Internal::Parser::Api::CinemaAddress
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.
10 11 12 |
# File 'lib/cineworld_uk/internal/parser/api/cinema_address.rb', line 10 def initialize(id) @id = id end |
Instance Method Details
#to_hash ⇒ Hash
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.
Note:
Uses the address naming from microformats.org/wiki/adr
:locality, :postal_code, :country
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cineworld_uk/internal/parser/api/cinema_address.rb', line 17 def to_hash { street_address: street_address, extended_address: extended_address, locality: locality, region: region, postal_code: postal_code, country: 'United Kingdom'.freeze } end |