Class: SpeedtestNet::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/speedtest_net/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip, isp, geo) ⇒ Client

Returns a new instance of Client.



7
8
9
10
11
# File 'lib/speedtest_net/client.rb', line 7

def initialize(ip, isp, geo)
  @ip = ip
  @isp = isp
  @geo = geo
end

Instance Attribute Details

#geoObject (readonly)

Returns the value of attribute geo.



5
6
7
# File 'lib/speedtest_net/client.rb', line 5

def geo
  @geo
end

#ipObject (readonly)

Returns the value of attribute ip.



5
6
7
# File 'lib/speedtest_net/client.rb', line 5

def ip
  @ip
end

#ispObject (readonly)

Returns the value of attribute isp.



5
6
7
# File 'lib/speedtest_net/client.rb', line 5

def isp
  @isp
end