Class: GeoIP::ISP

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ispObject

Returns the value of attribute isp

Returns:

  • (Object)

    the current value of isp



206
207
208
# File 'lib/geoip.rb', line 206

def isp
  @isp
end

Instance Method Details

#to_hashObject



207
208
209
# File 'lib/geoip.rb', line 207

def to_hash
  Hash[each_pair.to_a]
end