Class: Moysklad::Entities::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/moysklad/entities/image.rb

Instance Attribute Summary

Attributes inherited from Base

#dump, #universe

Instance Method Summary collapse

Methods inherited from Base

build, #initialize, #to_json, #to_s

Constructor Details

This class inherits a constructor from Moysklad::Entities::Base

Instance Method Details

#download(client, dir) ⇒ Object



11
12
13
# File 'lib/moysklad/entities/image.rb', line 11

def download(client, dir)
  client.download meta.href, dir + filename
end