Module: PublicAssets
- Included in:
- PublicContent
- Defined in:
- lib/pub/content/assets.rb
Instance Method Summary collapse
-
#get_asset_info(slug) ⇒ Object
Get Asset Info.
Instance Method Details
#get_asset_info(slug) ⇒ Object
Get Asset Info.
Get a description of an Asset.
Parameters
- slug
-
(String) – It’s the string identifier of the asset.
Example
@data = @mints_pub.get_asset_info("asset_slug")
13 14 15 |
# File 'lib/pub/content/assets.rb', line 13 def get_asset_info(slug) @client.raw('get', "/content/asset-info/#{slug}") end |