Class: Radar::Client
- Inherits:
-
Object
- Object
- Radar::Client
- Defined in:
- lib/radar_client_rb/client.rb,
lib/radar_client_rb/version.rb
Constant Summary collapse
- VERSION =
'3.1.0'
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
Instance Method Summary collapse
-
#initialize(subdomain, redis) ⇒ Client
constructor
A new instance of Client.
- #message(name) ⇒ Object
- #presence(name) ⇒ Object
- #status(name) ⇒ Object
Constructor Details
#initialize(subdomain, redis) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/radar_client_rb/client.rb', line 7 def initialize(subdomain, redis) @subdomain = subdomain @redis = redis end |
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
5 6 7 |
# File 'lib/radar_client_rb/client.rb', line 5 def redis @redis end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
5 6 7 |
# File 'lib/radar_client_rb/client.rb', line 5 def subdomain @subdomain end |
Instance Method Details
#message(name) ⇒ Object
20 21 22 |
# File 'lib/radar_client_rb/client.rb', line 20 def (name) MessageList.new(self, name) end |