Class: ShedCloud::PartnerApi::Resources::Documents

Inherits:
Base
  • Object
show all
Defined in:
lib/shedcloud/partner_api/resources/documents.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ShedCloud::PartnerApi::Resources::Base

Instance Method Details

#download(id) ⇒ Object



11
12
13
# File 'lib/shedcloud/partner_api/resources/documents.rb', line 11

def download(id)
  @http.request('GET', "/partner/v1/documents/#{path_segment(id)}/download") || {}
end

#list(params) ⇒ Object



7
8
9
# File 'lib/shedcloud/partner_api/resources/documents.rb', line 7

def list(params)
  @http.request('GET', '/partner/v1/documents', query: params) || {}
end