File: Region.py

package info (click to toggle)
python-digitalocean 1.16.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 912 kB
  • sloc: python: 4,961; makefile: 46
file content (15 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-
from .baseapi import BaseAPI


class Region(BaseAPI):
    def __init__(self, *args, **kwargs):
        self.name = None
        self.slug = None
        self.sizes = []
        self.available = None
        self.features = []
        super(Region, self).__init__(*args, **kwargs)

    def __str__(self):
        return "<Region: %s %s>" % (self.slug, self.name)