Class: AwsIpUtilities::Prefix
- Inherits:
-
Struct
- Object
- Struct
- AwsIpUtilities::Prefix
- Defined in:
- lib/aws_ip_utilities.rb
Instance Attribute Summary collapse
-
#ip_prefix ⇒ Object
Returns the value of attribute ip_prefix.
-
#region ⇒ Object
Returns the value of attribute region.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
Instance Attribute Details
#ip_prefix ⇒ Object
Returns the value of attribute ip_prefix
7 8 9 |
# File 'lib/aws_ip_utilities.rb', line 7 def ip_prefix @ip_prefix end |
#region ⇒ Object
Returns the value of attribute region
7 8 9 |
# File 'lib/aws_ip_utilities.rb', line 7 def region @region end |
#service ⇒ Object
Returns the value of attribute service
7 8 9 |
# File 'lib/aws_ip_utilities.rb', line 7 def service @service end |
Instance Method Details
#include?(addr) ⇒ Boolean
8 9 10 |
# File 'lib/aws_ip_utilities.rb', line 8 def include?(addr) ip_prefix.include?(addr) end |