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

options = {
  "fields": "id, title"
}
@data = @mints_user.get_asset(1, options)


47
48
49
# File 'lib/user/content/assets.rb', line 47

def get_asset(id, options = nil)
    return @client.raw("get", "/content/assets/#{id}", options)
end