Class: TaskServiceClient
- Inherits:
-
Object
- Object
- TaskServiceClient
- Defined in:
- lib/client/task_service_client.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#use_gzip ⇒ Object
Returns the value of attribute use_gzip.
Instance Method Summary collapse
-
#initialize(address, auth, use_gzip = true) ⇒ TaskServiceClient
constructor
A new instance of TaskServiceClient.
-
#subscribe ⇒ Object
返回 TaskServiceSubscribeClient.
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
#address ⇒ Object
Returns the value of attribute address.
2 3 4 |
# File 'lib/client/task_service_client.rb', line 2 def address @address end |
#auth ⇒ Object
Returns the value of attribute auth.
3 4 5 |
# File 'lib/client/task_service_client.rb', line 3 def auth @auth end |
#use_gzip ⇒ Object
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
#subscribe ⇒ Object
返回 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 |