Class: ClientFactory
- Inherits:
-
Object
- Object
- ClientFactory
- Defined in:
- lib/wattics-api-client/client.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.get_instance ⇒ Object
19 20 21 |
# File 'lib/wattics-api-client/client.rb', line 19 def self.get_instance @instance ||= new end |
.setInstance(client_factory) ⇒ Object
15 16 17 |
# File 'lib/wattics-api-client/client.rb', line 15 def self.setInstance(client_factory) @instance = client_factory end |
Instance Method Details
#create_client ⇒ Object
23 24 25 |
# File 'lib/wattics-api-client/client.rb', line 23 def create_client Client.new end |