Class: FreeboxApi::Configuration::Lan::Browser::Interface
- Inherits:
-
Object
- Object
- FreeboxApi::Configuration::Lan::Browser::Interface
- Defined in:
- lib/freebox_api/configuration/lan.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(session, name) ⇒ Interface
constructor
A new instance of Interface.
- #lan_hosts ⇒ Object
- #wol(params = {}) ⇒ Object
Constructor Details
#initialize(session, name) ⇒ Interface
Returns a new instance of Interface.
23 24 25 26 |
# File 'lib/freebox_api/configuration/lan.rb', line 23 def initialize(session, name) @session = session @name = name end |
Class Method Details
.getLanHosts(session, name) ⇒ Object
28 29 30 |
# File 'lib/freebox_api/configuration/lan.rb', line 28 def self.getLanHosts(session, name) session.http_call('get', "/lan/browser/#{name}/") end |
.wol(session, name, params = {}) ⇒ Object
36 37 38 |
# File 'lib/freebox_api/configuration/lan.rb', line 36 def self.wol(session, name, params = {}) session.http_call('post', "/lan/wol/#{name}/", params) end |
Instance Method Details
#lan_hosts ⇒ Object
32 33 34 |
# File 'lib/freebox_api/configuration/lan.rb', line 32 def lan_hosts self.class.getLanHosts(@session, @name) end |
#wol(params = {}) ⇒ Object
40 41 42 |
# File 'lib/freebox_api/configuration/lan.rb', line 40 def wol(params = {}) self.class.wol(@session, @name, params) end |