NAME

WebService::DigitalOcean::Role::Sizes - Sizes role for DigitalOcean WebService

VERSION

version 0.010

METHODS

$do->size_list()

Retrieves all the sizes available in Digital Ocean.

my $sizes = $do->size_list();

for my $s (@{ $sizes->{content}{sizes} }) {
    say "Size $s->{slug} costs $s->{price_hourly} per hour.";
}

More info: https://developers.digitalocean.com/#list-all-sizes.

DESCRIPTION

Implements the Sizes resource.

More info: https://developers.digitalocean.com/#sizes.

AUTHOR

André Walker <andre@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by André Walker.

This is free software, licensed under:

The GNU General Public License, Version 2, June 1991