Class: TaskServiceClient

Inherits:
Object
  • Object
show all
Defined in:
lib/client/task_service_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, auth, use_gzip = true) ⇒ TaskServiceClient

Returns a new instance of TaskServiceClient.



6
7
8
9
10
# File 'lib/client/task_service_client.rb', line 6

def initialize(address,auth,use_gzip=true)
	@address = address
	@auth = auth
	@use_gzip = use_gzip
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



2
3
4
# File 'lib/client/task_service_client.rb', line 2

def address
  @address
end

#authObject

Returns the value of attribute auth.



3
4
5
# File 'lib/client/task_service_client.rb', line 3

def auth
  @auth
end

#use_gzipObject

Returns the value of attribute use_gzip.



4
5
6
# File 'lib/client/task_service_client.rb', line 4

def use_gzip
  @use_gzip
end

Instance Method Details

#subscribeObject

返回 TaskServiceSubscribeClient



13
14
15
16
# File 'lib/client/task_service_client.rb', line 13

def subscribe
	stub = TaskServiceSubscribeClient.new(@address,@auth,@use_gzip)
	return stub
end