Class: Conreality::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/conreality/asset.rb

Overview

Represents a Conreality asset.

Constant Summary collapse

TABLE =
:object_asset
KEY =
:uuid

Instance Attribute Summary collapse

Attributes inherited from Object

#color, #group, #label, #mass, #orientation, #position, #radius, #theater, #type, #uuid

Instance Method Summary collapse

Methods inherited from Object

#as_asset, #as_camera, #as_player, #inspect, #is_asset?, #is_camera?, #is_player?, #is_target?, #send_message

Constructor Details

#initialize(session, uuid) ⇒ Asset

Returns a new instance of Asset.

Parameters:



44
45
46
# File 'lib/conreality/asset.rb', line 44

def initialize(session, uuid)
  super(session, uuid)
end

Instance Attribute Details

#avatarBinary

The asset’s avatar image.

Returns:



32
33
34
# File 'lib/conreality/asset.rb', line 32

def avatar
  @avatar
end

#ip_addrString

The asset’s IPv4/IPv6 address.

Returns:

  • (String)


26
27
28
# File 'lib/conreality/asset.rb', line 26

def ip_addr
  @ip_addr
end

#nameString

The asset’s full name.

Returns:

  • (String)


20
21
22
# File 'lib/conreality/asset.rb', line 20

def name
  @name
end

#nickString

The asset’s nickname.

Returns:

  • (String)


14
15
16
# File 'lib/conreality/asset.rb', line 14

def nick
  @nick
end

#versionString

The asset’s deployed software version.

Returns:

  • (String)


39
40
41
# File 'lib/conreality/asset.rb', line 39

def version
  @version
end