class BrickFTP::RESTfulAPI::GetBundle

Show a bundle

@see developers.files.com/#show-a-bundle Show a bundle

Public Instance Methods

call(id) click to toggle source

Returns a single bundle.

@param [Integer] id Globally unique identifier of each bundle. @return [BrickFTP::Types::Bundle] Bundle

# File lib/brick_ftp/restful_api/get_bundle.rb, line 18
def call(id)
  res = client.get("/api/rest/v1/bundles/#{id}.json")
  return nil if !res || res.empty?

  BrickFTP::Types::Bundle.new(**res.symbolize_keys)
end