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
create_account()
update_account(id, )
delete_account(id)
Account cron
update_cron(id, )
Server
servers
Alias
aliases(account_id)
create_alias(account_id, )
update_alias(alias_name, )
delete_alias(alias_name)
Domain
domains(account_id)
create_domain(account_id, )
update_domain(domain_name, )
delete_domain(domain_name)
DNS
domain_dns(domain_name)
dns(id)
create_dns(domain_name, )
delete_dns(id)
Database
databases(account_id)
create_database(account_id, )
delete_database(account_id, db_name)
Database user
databases_users(account_id)
database_user_info(account_id, db_user_name)
create_database_user(account_id, )
update_database_user(account_id, db_user_name, )
delete_database_user(account_id, 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.