#NEWLINE# def _to_size( self , data ) : #NEWLINE# #INDENT# extra = { #NEWLINE# #INDENT# 'vcpus' : data [ 'vcpus' ] , #NEWLINE# 'regions' : data [ 'regions' ] , #NEWLINE# #UNINDENT# } #NEWLINE# return NodeSize ( id = data [ 'slug' ] , name = data [ 'slug' ] , ram = data [ 'memory' ] , disk = extra [ 'disk' ] , bandwidth = data [ 'transfer' ] , price = data [ 'price_hourly' ] , driver = self , extra = extra )