Class: Akeneo::MediaFilesService
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- Akeneo::MediaFilesService
- Defined in:
- lib/akeneo/media_files_service.rb
Constant Summary
Constants inherited from ServiceBase
ServiceBase::API_VERSION, ServiceBase::DEFAULT_PAGINATION_LIMIT, ServiceBase::DEFAULT_PAGINATION_TYPE
Constants included from Cache
Instance Method Summary collapse
Methods inherited from ServiceBase
Methods included from Cache
disabled=, #get_request, prepended
Constructor Details
This class inherits a constructor from Akeneo::ServiceBase
Instance Method Details
#download(code) ⇒ Object
13 14 15 16 17 |
# File 'lib/akeneo/media_files_service.rb', line 13 def download(code) response = get_request("/media-files/#{code}/download") response.parsed_response if response.success? end |
#find(code) ⇒ Object
7 8 9 10 11 |
# File 'lib/akeneo/media_files_service.rb', line 7 def find(code) response = get_request("/media-files/#{code}") response.parsed_response if response.success? end |