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.
Instance Method Summary collapse
-
#initialize(address, auth) ⇒ TaskServiceClient
constructor
A new instance of TaskServiceClient.
-
#subscribe ⇒ Object
返回 TaskServiceSubscribeClient.
Constructor Details
#initialize(address, auth) ⇒ TaskServiceClient
Returns a new instance of TaskServiceClient.
5 6 7 8 |
# File 'lib/client/task_service_client.rb', line 5 def initialize(address,auth) @address = address @auth = auth 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 |
Instance Method Details
#subscribe ⇒ Object
返回 TaskServiceSubscribeClient
11 12 13 14 |
# File 'lib/client/task_service_client.rb', line 11 def subscribe stub = TaskServiceSubscribeClient.new(@address,@auth) return stub end |