Sha256: 653b600741491eb7407fa2a320566114c1283d266a2bef2fecb745b910430c84
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
module FreeboxApi module Resources class LanHost def initialize(session) @session = session end def index Interface.new(@session).index.collect { |interface| @session.http_call('get', "/lan/browser/#{interface['name']}") }.flatten end def show(id, interface = 'pub') @session.http_call('get', "/lan/browser/#{interface}/#{id}/") end def update(params = {}, interface = 'pub') @session.http_call('put', "/lan/browser/#{interface}/#{params['id']}", params) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems