Class: BrickFTP::RESTfulAPI::CreateBundle
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::CreateBundle
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/create_bundle.rb
Overview
Create a bundle
Params
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
paths | array | List of the paths associated with the bundle. |
password | string | Optional password to password-protect the bundle. This property is write-only. It cannot be retrieved via the API. |
Defined Under Namespace
Classes: Params
Instance Method Summary collapse
-
#call(params) ⇒ BrickFTP::Types::Bundle
Creates a new group on the current site.
Methods included from Command
Instance Method Details
#call(params) ⇒ BrickFTP::Types::Bundle
Creates a new group on the current site.
33 34 35 36 37 |
# File 'lib/brick_ftp/restful_api/create_bundle.rb', line 33 def call(params) res = client.post('/api/rest/v1/bundles.json', params.to_h.compact) BrickFTP::Types::Bundle.new(**res.symbolize_keys) end |