Class: Radar::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/radar_client_rb/client.rb,
lib/radar_client_rb/version.rb

Constant Summary collapse

VERSION =
'2.0.1'

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#redisObject

Returns the value of attribute redis


5
6
7
# File 'lib/radar_client_rb/client.rb', line 5

def redis
  @redis
end

#subdomainObject

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 message(name)
  MessageList.new(self, name)
end

#presence(name) ⇒ Object


12
13
14
# File 'lib/radar_client_rb/client.rb', line 12

def presence(name)
  Presence.new(self, name)
end

#status(name) ⇒ Object


16
17
18
# File 'lib/radar_client_rb/client.rb', line 16

def status(name)
  Status.new(self, name)
end