Class: HolePunch::Permission
- Inherits:
-
Struct
- Object
- Struct
- HolePunch::Permission
- Defined in:
- lib/holepunch/definition.rb
Instance Attribute Summary collapse
-
#ports ⇒ Object
Returns the value of attribute ports.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#ports ⇒ Object
Returns the value of attribute ports
45 46 47 |
# File 'lib/holepunch/definition.rb', line 45 def ports @ports end |
#sources ⇒ Object
Returns the value of attribute sources
45 46 47 |
# File 'lib/holepunch/definition.rb', line 45 def sources @sources end |
#type ⇒ Object
Returns the value of attribute type
45 46 47 |
# File 'lib/holepunch/definition.rb', line 45 def type @type end |
Instance Method Details
#icmp? ⇒ Boolean
46 47 48 |
# File 'lib/holepunch/definition.rb', line 46 def icmp? type == :icmp end |
#tcp? ⇒ Boolean
50 51 52 |
# File 'lib/holepunch/definition.rb', line 50 def tcp? type == :tcp end |
#udp? ⇒ Boolean
54 55 56 |
# File 'lib/holepunch/definition.rb', line 54 def udp? type == :udp end |