Sha256: 73bfafc56fb3a072a7601f8259d29a0ff861e0d5049ec86aad9fa5e2cb457a9f
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
module FreeboxApi module Resources class LanHost attr_reader :id, :primary_name, :host_type, :primary_name_manual, :l2ident, :vendor_name, :persistent, :reachable, :last_time_reachable, :active, :last_activity, :names, :l3connectivities, :interface def initialize(id, primary_name, host_type, primary_name_manual, l2ident, vendor_name, persistent, reachable, last_time_reachable, active, last_activity, names, l3connectivities, interface, freebox) @id = id @primary_name = primary_name @host_type = host_type @primary_name_manual = primary_name_manual @l2ident = l2ident @vendor_name = vendor_name @persistent = persistent @reachable = reachable @last_time_reachable = last_time_reachable @active = active @last_activity = last_activity @names = names @l3connectivities = l3connectivities @interface = interface @freebox = freebox end def static_leases @freebox.static_leases.select { |static_lease| static_lease.host == self } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freebox_api-0.0.1 | lib/freebox_api/resources/lan_host.rb |