Class: Conreality::Theater
- Inherits:
-
Object
- Object
- Conreality::Theater
- 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
-
#label ⇒ String
The theater’s designated label.
-
#location ⇒ ?
The theater’s origin location (as GPS coordinates).
-
#uuid ⇒ String
readonly
The theater’s unique identifier.
Instance Method Summary collapse
- #each_asset(&block) ⇒ Object
- #each_camera(&block) ⇒ Object
- #each_object(&block) ⇒ Object
- #each_player(&block) ⇒ Object
- #each_target(&block) ⇒ Object
-
#initialize(session, uuid) ⇒ Theater
constructor
A new instance of Theater.
-
#inspect ⇒ String
Returns a developer-friendly representation of this theater.
Constructor Details
#initialize(session, uuid) ⇒ Theater
Returns a new instance of Theater.
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
#label ⇒ String
The theater’s designated label.
20 21 22 |
# File 'lib/conreality/theater.rb', line 20 def label @label end |
#location ⇒ ?
The theater’s origin location (as GPS coordinates).
26 27 28 |
# File 'lib/conreality/theater.rb', line 26 def location @location end |
#uuid ⇒ String (readonly)
The theater’s unique identifier.
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 |
#inspect ⇒ String
Returns a developer-friendly representation of this theater.
40 41 42 |
# File 'lib/conreality/theater.rb', line 40 def inspect sprintf("#<%s:%#0x(uuid: %s)>", self.class.name, self.__id__, @uuid) end |