0.0
No release in over a year
Library for testing internet bandwidth using speedtest.net
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.9, < 2.0
~> 3.2
~> 1.3
 Project Readme

SpeedtestNet

Gem Version Actions Status Codacy Badge Codacy Badge

A Ruby library for testing internet bandwidth using speedtest.net

Installation

Add this line to your application's Gemfile:

gem 'speedtest_net'

And then execute:

$ bundle

Or install it yourself as:

$ gem install speedtest_net

Usage

require 'speedtest_net'

Run speedtest

result = SpeedtestNet.run                    # SpeedtestNet::Result instance
result.server                                # server environment in speedtest
result.client                                # client environment in speedtest
result.latency                               # latency in speedtest
result.download                              # download bit/second in speedtest
result.upload                                # upload bit/second in speedtest
result.pretty_latency                        # pretty format for latency in speedtest
result.pretty_download                       # pretty format for download bit/second in speedtest
result.pretty_upload                         # pretty format for upload bit/second in speedtest

Contributing

  1. Fork it ( https://github.com/ryonkn/speedtest_net/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the SpeedtestNet project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.