Module: Voog::API::Assets
- Included in:
- Client
- Defined in:
- lib/voog_api/api/assets.rb
Instance Method Summary collapse
-
#asset(id, params = {}) ⇒ Object
Get a single asset.
-
#assets(params = {}) ⇒ Object
List assets.
-
#confirm_asset(id) ⇒ Object
Confirm a asset upload.
-
#create_asset(data) ⇒ Object
Create a asset.
-
#delete_asset(id) ⇒ Object
Delete a asset.
Instance Method Details
#asset(id, params = {}) ⇒ Object
Get a single asset
11 12 13 |
# File 'lib/voog_api/api/assets.rb', line 11 def asset(id, params = {}) get "assets/#{id}", {query: params} end |
#assets(params = {}) ⇒ Object
List assets
6 7 8 |
# File 'lib/voog_api/api/assets.rb', line 6 def assets(params = {}) paginate 'assets', {query: params} end |
#confirm_asset(id) ⇒ Object
Confirm a asset upload
21 22 23 |
# File 'lib/voog_api/api/assets.rb', line 21 def confirm_asset(id) put "assets/#{id}/confirm", nil end |
#create_asset(data) ⇒ Object
Create a asset
16 17 18 |
# File 'lib/voog_api/api/assets.rb', line 16 def create_asset(data) post 'assets', data end |
#delete_asset(id) ⇒ Object
Delete a asset
26 27 28 |
# File 'lib/voog_api/api/assets.rb', line 26 def delete_asset(id) delete "assets/#{id}" end |