Class: FFI::HDHomeRun::DiscoverDevice

Inherits:
Struct
  • Object
show all
Defined in:
lib/ffi/hdhomerun.rb

Overview

Discover device structure

Silicon dust changed this structure at some point between revision 20100121 and 20110323, but the version number in the library filename was not changed by package maintainers for ubuntu. As a result, there’s no simple way to determine which structure we should use. To work around this, the gem will assume the library has the newer structure unless the FFI_HDHOMERUN_OLD_DEVICE_STRUCT environment variable has been set.

Instance Method Summary collapse

Instance Method Details

#ip_addrObject



130
131
132
# File 'lib/ffi/hdhomerun.rb', line 130

def ip_addr
  IPAddr.new(self[:ip_addr], Socket::AF_INET)
end