Top

spotify.object.image module

lass Image(object):
   def __init__(self, height, width, url):
       self.height = height
       self.width = width
       self.url = url
   @classmethod
   def from_json(cls, json):
       return Image(
           json['height'],
           json['width'],
           json['url']
       )

Classes

class Image

class Image(object):

    def __init__(self, height, width, url):
        self.height = height
        self.width = width
        self.url = url

    @classmethod
    def from_json(cls, json):
        return Image(
            json['height'],
            json['width'],
            json['url']
        )

Ancestors (in MRO)

  • Image
  • __builtin__.object

Instance variables

var height

var url

var width

Methods

def __init__(

self, height, width, url)

def __init__(self, height, width, url):
    self.height = height
    self.width = width
    self.url = url

def from_json(

cls, json)

@classmethod
def from_json(cls, json):
    return Image(
        json['height'],
        json['width'],
        json['url']
    )