<commit_before># Digital Ocean API

This gem is a simple and easy-to-use wrapper for Digital Ocean's API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'digital-ocean'
```

And then execute:

```bash
$ bundle install
```

Or install it yourself as:

```bash
$ gem install digital-ocean
```

## Contributing
<commit_msg>Update README.md with usage info.<commit_after># Digital Ocean API

This gem is a simple and easy-to-use wrapper for Digital Ocean's API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'digital-ocean'
```

And then execute:

```bash
$ bundle install
```

Or install it yourself as:

```bash
$ gem install digital-ocean
```

## Usage

To use the API methods, you'll need to retrieve your client ID and API key from Digital Ocean after logging in. You can then instantiate a new client and use the API methods.

```ruby
# Create a new client
client = DigitalOcean.client(
  :client_id => "202cd122bd857fb65d80bf804ef47fde",
  :api_key   => "cd7d64f341654411eadb4b32e2c6a2ae"
)
```

### Droplets

__Retrieve a list of your droplets__

This method returns an array of droplets each with the following attributes: _backups\_active, created\_at, id, image\_id, ip\_address, locked, name, private\_ip\_address, region\_id, size\_id, status_

```ruby
client.droplets
# => #<Hashie::Mash droplets=[#<Hashie::Mash backups_active=false cre...
```

## Contributing

{'fraction_non_alphanumeric': 0.1090146750524109, 'fraction_numerical': 0.025157232704402517, 'mean_word_length': 4.6156862745098035, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7599585', 'n_tokens_mistral': 513, 'n_tokens_neox': 454, 'n_words': 171}