Method: CloudConnect::Client::Assets#asset

Defined in:
lib/cloud_connect/client/assets.rb

#asset(imei, options = {}) ⇒ Asset

Get an asset

Examples:

Get asset 0123456789012345

@client = CloudConnect::Client.new(:account => 'foor', :token => 'bar')
@client.asset("0123456789012345")

Parameters:

  • imei (String)

    IMEI of the asset

Returns:

  • (Asset)

    The asset you requested, if it exists

See Also:



12
13
14
# File 'lib/cloud_connect/client/assets.rb', line 12

def asset(imei, options={})
  enhance( get("assets/#{imei}", options), with: AssetMethods )
end