Class: Conreality::Theater

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

Overview

Represents a Conreality theater of operations.

Constant Summary collapse

TABLE =

< Database::Row

:theater
KEY =
:uuid

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session, uuid) ⇒ Theater

Returns a new instance of Theater.

Parameters:



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

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

Instance Attribute Details

#labelString

The theater’s designated label.

Returns:

  • (String)


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

def label
  @label
end

#location?

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

Returns:

  • (?)


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

def location
  @location
end

#uuidString (readonly)

The theater’s unique identifier.

Returns:

  • (String)


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

def uuid
  @uuid
end

Instance Method Details

#each_asset(&block) ⇒ Object

TODO:


52
53
54
# File 'lib/conreality/theater.rb', line 52

def each_asset(&block)
  # TODO
end

#each_camera(&block) ⇒ Object

TODO:


58
59
60
# File 'lib/conreality/theater.rb', line 58

def each_camera(&block)
  # TODO
end

#each_object(&block) ⇒ Object

TODO:


46
47
48
# File 'lib/conreality/theater.rb', line 46

def each_object(&block)
  # TODO
end

#each_player(&block) ⇒ Object

TODO:


64
65
66
# File 'lib/conreality/theater.rb', line 64

def each_player(&block)
  # TODO
end

#each_target(&block) ⇒ Object

TODO:


70
71
72
# File 'lib/conreality/theater.rb', line 70

def each_target(&block)
  # TODO
end

#inspectString

Returns a developer-friendly representation of this theater.

Returns:

  • (String)


40
41
42
# File 'lib/conreality/theater.rb', line 40

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