ElasticWeb ruby client library

Client library for talking to Elasticweb API. Supports all endpoints.

Installation

Add this line to your application's Gemfile:

gem 'elasticweb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install elasticweb

Usage

Initialize client:

client = ElasticWeb::Client.new('API_KEY')

And then talk to API:

client.me

List of all methods

Client methods just map 1 to 1 to API, see all of them beyond. Check API docs for list of available options.

User

me

Account

accounts
(options)
(id, options)
(id)

Account cron

update_cron(id, options)

Server

servers

Alias

aliases()
create_alias(, options)
update_alias(alias_name, options)
delete_alias(alias_name)

Domain

domains()
create_domain(, options)
update_domain(domain_name, options)
delete_domain(domain_name)

DNS

domain_dns(domain_name)
dns(id)
create_dns(domain_name, options)
delete_dns(id)

Database

databases()
create_database(, options)
delete_database(, db_name)

Database user

databases_users()
(, db_user_name)
create_database_user(, options)
update_database_user(, db_user_name, options)
delete_database_user(, db_user_name)

Billing

operation_types
operations(type_name)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dev1vitaly/elasticweb.

License

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