Method: Assets#get_asset
- Defined in:
- lib/user/content/assets.rb
#get_asset(id, options = nil) ⇒ Object
Get asset.
Get a asset info.
Parameters
- id
-
(Integer) – Asset id.
- options
-
(Hash) – List of Resource Collection Options shown above can be used as parameter.
First Example
@data = @mints_user.get_asset(1)
Second Example
= {
"fields": "id, title"
}
@data = @mints_user.get_asset(1, )
47 48 49 |
# File 'lib/user/content/assets.rb', line 47 def get_asset(id, = nil) return @client.raw("get", "/content/assets/#{id}", ) end |