Giter Site home page Giter Site logo

loaderio-ruby's Introduction

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>

loaderio-ruby's People

Contributors

paladiy avatar rdh avatar johnson-rl avatar mwolman avatar le0pard avatar lorin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.