Class: Cineworld::API
Instance Method Summary collapse
- #cinemas(options = {}) ⇒ Object
- #dates(options = {}) ⇒ Object
- #films(options = {}) ⇒ Object
-
#initialize(key) ⇒ API
constructor
A new instance of API.
- #performances(options = {}) ⇒ Object
Constructor Details
#initialize(key) ⇒ API
Returns a new instance of API.
10 11 12 |
# File 'lib/cineworld.rb', line 10 def initialize(key) @key = key end |
Instance Method Details
#cinemas(options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/cineworld.rb', line 14 def cinemas( = {}) .merge!(:key => @key) self.class.get('/cinemas', :query => ) end |
#dates(options = {}) ⇒ Object
24 25 26 27 |
# File 'lib/cineworld.rb', line 24 def dates( = {}) .merge!(:key => @key) self.class.get('/dates', :query => ) end |
#films(options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/cineworld.rb', line 19 def films( = {}) .merge!(:key => @key) self.class.get('/films', :query => ) end |
#performances(options = {}) ⇒ Object
29 30 31 32 |
# File 'lib/cineworld.rb', line 29 def performances( = {}) .merge!(:key => @key) self.class.get('/performances', :query => ) end |