Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby client for loader.io api Build Status

License

Licensed under the MIT License.

Installing

Add to your 'Gemfile':

gem 'loaderio'

Configuration

Loaderio::Configuration.api_key = "your_api_key"

Application

Applications

Loaderio::Application.all
=> [#<Loaderio::Application:0x007f8615393af8 >, #<Loaderio::Application:0x007f86153939e0>]

Find application

Loaderio::Application.find "app_id"
=> #<Loaderio::Application:0x007fd232fe5338>

Create application

Loaderio::Application.create(app: "example.com")
=> #<Loaderio::Application:0x007fd232fe5338

Verify application

Loaderio::Application.verify("app_id")
=> #<Loaderio::Application:0x007fd23301b7f8>

Test

Tests

Loaderio::Test.all
=> [#<Loaderio::Test:0x007fd232066290>, #<Loaderio::Test:0x007fd2320661c8>]

Find test

Loaderio::Test.find("test_id")
=> #<Loaderio::Test:0x007fd2320eefc8>

Create test

Loaderio::Test.create(url: "http://example.com", load: "0-10-10")
=> #<Loaderio::Test:0x007fd232131ee0>

Create test with tags

Loaderio::Test.create(url: "http://example.com", load: "0-10-10", tag_names: ["tag1", "tag2"])
=> #<Loaderio::Test:0x007fd232131ee0>

Create test with params

Loaderio::Test.create(url: "http://example.com", load: "0-10-10", request_params:[{key: "param1", value: "value1"}, {key: "param2", value: "value2"}])
=> #<Loaderio::Test:0x007fd232131ee0>

Create test with headers

Loaderio::Test.create(url: "http://example.com", load: "0-10-10", headers:[{key: "header1", value: "value1"}, {key: "header2", value: "value2"}])
=> #<Loaderio::Test:0x007fd232131ee0>

Test results

Loaderio::Test.results("app_id")
=> #<Loaderio::Test:0x007fd2320eefc8>

About

ruby client for loader.io api

Resources

Stars

2 stars

Watchers

22 watching

Forks

Releases

Packages

Used by

Contributors

Languages