Class: MeshChat::Instance
- Inherits:
-
Object
- Object
- MeshChat::Instance
- Defined in:
- lib/meshchat/instance.rb
Instance Attribute Summary collapse
-
#client_name ⇒ Object
Returns the value of attribute client_name.
-
#client_version ⇒ Object
Returns the value of attribute client_version.
-
#display ⇒ Object
Returns the value of attribute display.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Instance
constructor
A new instance of Instance.
- #start_ui(klass, on_display_start) ⇒ Object
Constructor Details
Instance Attribute Details
#client_name ⇒ Object
Returns the value of attribute client_name.
3 4 5 |
# File 'lib/meshchat/instance.rb', line 3 def client_name @client_name end |
#client_version ⇒ Object
Returns the value of attribute client_version.
3 4 5 |
# File 'lib/meshchat/instance.rb', line 3 def client_version @client_version end |
#display ⇒ Object
Returns the value of attribute display.
3 4 5 |
# File 'lib/meshchat/instance.rb', line 3 def display @display end |
Class Method Details
.instance ⇒ Object
15 16 17 |
# File 'lib/meshchat/instance.rb', line 15 def instance @instance end |
.start(options) ⇒ Object
9 10 11 12 13 |
# File 'lib/meshchat/instance.rb', line 9 def start() # calling instance to get things going @instance = new() @instance.start_ui([:display], [:on_display_start]) end |