Class: SpeedtestNet::Client
- Inherits:
-
Object
- Object
- SpeedtestNet::Client
- Defined in:
- lib/speedtest_net/client.rb
Instance Attribute Summary collapse
-
#geo ⇒ Object
readonly
Returns the value of attribute geo.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#isp ⇒ Object
readonly
Returns the value of attribute isp.
Instance Method Summary collapse
-
#initialize(ip, isp, geo) ⇒ Client
constructor
A new instance of Client.
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
#geo ⇒ Object (readonly)
Returns the value of attribute geo.
5 6 7 |
# File 'lib/speedtest_net/client.rb', line 5 def geo @geo end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
5 6 7 |
# File 'lib/speedtest_net/client.rb', line 5 def ip @ip end |
#isp ⇒ Object (readonly)
Returns the value of attribute isp.
5 6 7 |
# File 'lib/speedtest_net/client.rb', line 5 def isp @isp end |