File: Size.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 (19 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
from .baseapi import BaseAPI


class Size(BaseAPI):
    def __init__(self, *args, **kwargs):
        self.slug = None
        self.memory = None
        self.vcpus = None
        self.disk = None
        self.transfer = None
        self.price_monthly = None
        self.price_hourly = None
        self.regions = []

        super(Size, self).__init__(*args, **kwargs)

    def __str__(self):
        return "%s" % (self.slug)