Class: Conreality::Asset

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

Overview

Represents a Conreality asset.

Constant Summary collapse

TABLE =
:object_asset
KEY =
:uuid

Constants inherited from Database::Row

Database::Row::SCHEMA

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

Methods inherited from Database::Row

attr_accessor, attr_reader, attr_wrapper, attr_writer, #get, #key, key_attr, #set!, table_name

Constructor Details

#initialize(client, uuid) ⇒ Asset

Returns a new instance of Asset.

Parameters:

  • client (Client)
  • uuid (#to_s)

42
43
44
# File 'lib/conreality/asset.rb', line 42

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

Instance Attribute Details

#avatarBinary

The asset's avatar image.

Returns:


30
31
32
# File 'lib/conreality/asset.rb', line 30

def avatar
  @avatar
end

#ip_addrString

The asset's IPv4/IPv6 address.

Returns:

  • (String)

24
25
26
# File 'lib/conreality/asset.rb', line 24

def ip_addr
  @ip_addr
end

#nameString

The asset's full name.

Returns:

  • (String)

18
19
20
# File 'lib/conreality/asset.rb', line 18

def name
  @name
end

#nickString

The asset's nickname.

Returns:

  • (String)

12
13
14
# File 'lib/conreality/asset.rb', line 12

def nick
  @nick
end

#versionString

The asset's deployed software version.

Returns:

  • (String)

37
38
39
# File 'lib/conreality/asset.rb', line 37

def version
  @version
end