class ActionPack::Cloudfront::IpRanges::Range
Attributes
ip_prefix[R]
region[R]
service[R]
Public Class Methods
new(attrs)
click to toggle source
# File lib/action_pack/cloudfront/ip_ranges.rb, line 8 def initialize(attrs) @service = attrs['service'] @ip_prefix = attrs['ip_prefix'] || attrs['ipv6_prefix'] @region = attrs['region'] end
Public Instance Methods
cloudfront?()
click to toggle source
# File lib/action_pack/cloudfront/ip_ranges.rb, line 14 def cloudfront? service =~ /cloudfront/i end
ipaddr()
click to toggle source
# File lib/action_pack/cloudfront/ip_ranges.rb, line 18 def ipaddr IPAddr.new(ip_prefix) end