class GeolocationParams
Attributes
fields[RW]
ip[RW]
ips[RW]
lang[RW]
Public Class Methods
new()
click to toggle source
# File lib/ipgeolocation_io/GeolocationParams.rb, line 8 def initialize @ip = ""; @fields = ""; @lang = "en"; @ips = Array.new(0); end
Public Instance Methods
ips=(ips)
click to toggle source
# File lib/ipgeolocation_io/GeolocationParams.rb, line 15 def ips=(ips) if @ips.length > 50 begin raise ArgumentError, 'Max. number of IP addresses cannot be more than 50.' rescue ArgumentError => e puts e.message end else @ips = ips; end end