Class: Chute::V2::Asset::Meta

Inherits:
Object
  • Object
show all
Defined in:
lib/chute/v2/asset/meta.rb

Class Method Summary collapse

Class Method Details

.private(album_id, asset_id, meta) ⇒ Object



12
13
14
15
16
# File 'lib/chute/v2/asset/meta.rb', line 12

def private album_id, asset_id, meta
  meta = { metadata: meta } unless meta.has_key? :metadata

  Chute::Client.put "/v2/albums/#{album_id}/assets/#{asset_id}/meta/private", meta
end

.public(album_id, asset_id, meta) ⇒ Object



6
7
8
9
10
# File 'lib/chute/v2/asset/meta.rb', line 6

def public album_id, asset_id, meta
  meta = { metadata: meta } unless meta.has_key? :metadata

  Chute::Client.put "/v2/albums/#{album_id}/assets/#{asset_id}/meta/public", meta
end