Module: HomeWizard
- Extended by:
- WrAPI::Configuration, WrAPI::RespondTo
- Defined in:
- lib/homewizard/api.rb,
lib/homewizard.rb,
lib/homewizard/error.rb,
lib/homewizard/client.rb,
lib/homewizard/version.rb
Overview
require File.expand_path(‘configuration’, __dir__)
Defined Under Namespace
Classes: API, APInotEnabledError, Client, DeviceTypeError, HomeWizardError
Constant Summary collapse
- DEFAULT_UA =
'Ruby HomeWizard API client'
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.client(options = {}) ⇒ Hudu::Client
11 12 13 |
# File 'lib/homewizard.rb', line 11 def self.client( = {}) HomeWizard::Client.new({ user_agent: DEFAULT_UA }.merge()) end |
.reset ⇒ Object
15 16 17 18 19 |
# File 'lib/homewizard.rb', line 15 def self.reset super self.endpoint = nil self.user_agent = DEFAULT_UA end |