Class: Capp::Device

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

Overview

A device which Capp can listen on, returned by Capp::devices

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses

Returns:

  • (Object)

    the current value of addresses



70
71
72
# File 'lib/capp.rb', line 70

def addresses
  @addresses
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



70
71
72
# File 'lib/capp.rb', line 70

def description
  @description
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



70
71
72
# File 'lib/capp.rb', line 70

def flags
  @flags
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



70
71
72
# File 'lib/capp.rb', line 70

def name
  @name
end

Instance Method Details

#open(*args) ⇒ Object

Creates a new packet capture device for this device sending the given args to Capp.open.



76
77
78
# File 'lib/capp.rb', line 76

def open *args
  Capp.open name, *args
end