class BrickFTP::RESTfulAPI::ListBundles

List all bundles

@see developers.files.com/#list-all-bundles List all bundles

Public Instance Methods

call() click to toggle source

Returns a list of all bundles on the current site.

@return [Array<BrickFTP::Types::Bundle>] Bundle

# File lib/brick_ftp/restful_api/list_bundles.rb, line 17
def call
  res = client.get('/api/rest/v1/bundles.json')

  res.map { |i| BrickFTP::Types::Bundle.new(**i.symbolize_keys) }
end