Class: Msnav::WindowRegistry::WindowReg

Inherits:
Struct
  • Object
show all
Defined in:
lib/msnav/windows.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorityObject

Returns the value of attribute authority

Returns:

  • (Object)

    the current value of authority



27
28
29
# File 'lib/msnav/windows.rb', line 27

def authority
  @authority
end

#host_rootsObject

Returns the value of attribute host_roots

Returns:

  • (Object)

    the current value of host_roots



27
28
29
# File 'lib/msnav/windows.rb', line 27

def host_roots
  @host_roots
end

#last_pollObject

Returns the value of attribute last_poll

Returns:

  • (Object)

    the current value of last_poll



27
28
29
# File 'lib/msnav/windows.rb', line 27

def last_poll
  @last_poll
end

#path_mappingsObject

Returns the value of attribute path_mappings

Returns:

  • (Object)

    the current value of path_mappings



27
28
29
# File 'lib/msnav/windows.rb', line 27

def path_mappings
  @path_mappings
end

#rootsObject

Returns the value of attribute roots

Returns:

  • (Object)

    the current value of roots



27
28
29
# File 'lib/msnav/windows.rb', line 27

def roots
  @roots
end

#seqObject

Returns the value of attribute seq

Returns:

  • (Object)

    the current value of seq



27
28
29
# File 'lib/msnav/windows.rb', line 27

def seq
  @seq
end

#window_idObject

Returns the value of attribute window_id

Returns:

  • (Object)

    the current value of window_id



27
28
29
# File 'lib/msnav/windows.rb', line 27

def window_id
  @window_id
end

Instance Method Details

#alive?(now) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/msnav/windows.rb', line 29

def alive?(now)
  (now - last_poll) <= ALIVE_SECONDS
end