Class: Veezi::Client
- Inherits:
-
Object
- Object
- Veezi::Client
- Defined in:
- lib/veezi/client.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
- #films ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #sessions ⇒ Object
- #web_sessions ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 |
# File 'lib/veezi/client.rb', line 5 def initialize @configuration = Veezi.configuration raise InvalidConfiguration unless @configuration.valid? end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/veezi/client.rb', line 3 def configuration @configuration end |
Instance Method Details
#films ⇒ Object
15 16 17 |
# File 'lib/veezi/client.rb', line 15 def films @films ||= Veezi::API::Films.new(self) end |
#sessions ⇒ Object
11 12 13 |
# File 'lib/veezi/client.rb', line 11 def sessions @sessions ||= Veezi::API::Sessions.new(self) end |
#web_sessions ⇒ Object
19 20 21 |
# File 'lib/veezi/client.rb', line 19 def web_sessions @web_sessions ||= Veezi::API::WebSessions.new(self) end |