Class: Conreality::Theater

Inherits:
Database::Row show all
Defined in:
lib/conreality/theater.rb

Overview

Represents a Conreality theater of operations.

Constant Summary collapse

TABLE =
:theater
KEY =
:uuid

Constants inherited from Database::Row

Database::Row::SCHEMA

Instance Attribute Summary collapse

Instance Method Summary collapse

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) ⇒ Theater

Returns a new instance of Theater.

Parameters:

  • client (Client)
  • uuid (#to_s)

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

def initialize(client, uuid)
  super(client)
  @uuid = uuid.to_s
end

Instance Attribute Details

#labelString

The theater's designated label.

Returns:

  • (String)

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

def label
  @label
end

#location?

The theater's origin location (as GPS coordinates).

Returns:

  • (?)

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

def location
  @location
end

#uuidString (readonly)

The theater's unique identifier.

Returns:

  • (String)

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

def uuid
  @uuid
end

Instance Method Details

#each_asset(&block) ⇒ Object

TODO:

50
51
52
# File 'lib/conreality/theater.rb', line 50

def each_asset(&block)
  # TODO
end

#each_camera(&block) ⇒ Object

TODO:

56
57
58
# File 'lib/conreality/theater.rb', line 56

def each_camera(&block)
  # TODO
end

#each_object(&block) ⇒ Object

TODO:

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

def each_object(&block)
  # TODO
end

#each_player(&block) ⇒ Object

TODO:

62
63
64
# File 'lib/conreality/theater.rb', line 62

def each_player(&block)
  # TODO
end

#each_target(&block) ⇒ Object

TODO:

68
69
70
# File 'lib/conreality/theater.rb', line 68

def each_target(&block)
  # TODO
end

#inspectString

Returns a developer-friendly representation of this theater.

Returns:

  • (String)

38
39
40
# File 'lib/conreality/theater.rb', line 38

def inspect
  sprintf("#<%s:%#0x(uuid: %s)>", self.class.name, self.__id__, @uuid)
end