Class: AwsIpUtilities::Prefix

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ip_prefixObject

Returns the value of attribute ip_prefix

Returns:

  • (Object)

    the current value of ip_prefix



7
8
9
# File 'lib/aws_ip_utilities.rb', line 7

def ip_prefix
  @ip_prefix
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



7
8
9
# File 'lib/aws_ip_utilities.rb', line 7

def region
  @region
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



7
8
9
# File 'lib/aws_ip_utilities.rb', line 7

def service
  @service
end

Instance Method Details

#include?(addr) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/aws_ip_utilities.rb', line 8

def include?(addr)
  ip_prefix.include?(addr)
end