Sha256: f8026d6d594fd07aa8fcf40f5f28708a04097dab21d2c5b871fe09f50b2e5dc1
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
module FreeboxApi class Config def initialize(session) @session = session end def url(service) case service when 'ipv6' '/connection/ipv6/config/' when /^ddns\// "/connection/#{service}/" when 'dmz' '/fw/dmz/' when 'samba', 'afp' '/netshare/samba/' else "/#{service}/config/" end end def show(service) @session.http_call('get', url(service)) end def update(service, params = {}) @session.http_call('put', url(service), params) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
freebox_api-0.2.2 | lib/freebox_api/config.rb |
freebox_api-0.2.1 | lib/freebox_api/config.rb |
freebox_api-0.2.0 | lib/freebox_api/config.rb |
freebox_api-0.1.2 | lib/freebox_api/config.rb |