Method: Contentstack::AssetCollection#fetch
- Defined in:
- lib/contentstack/asset_collection.rb
permalink #fetch ⇒ Object
Fetch assets uploaded to Contentstack
Example:
@assets = @stack.assets.fetch
23 24 25 26 |
# File 'lib/contentstack/asset_collection.rb', line 23 def fetch json = API.get_assets self.class.new(json["assets"]) end |