Class: TTK::Services::FetcherClient

Inherits:
DRbService show all
Defined in:
lib/ttk/services/FetcherClient.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DRbService

#stop_service, #update

Constructor Details

#initialize(config = {}) ⇒ FetcherClient

Returns a new instance of FetcherClient.



13
14
15
16
# File 'lib/ttk/services/FetcherClient.rb', line 13

def initialize(config={})
  @client = nil
  super(config)
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



18
19
20
# File 'lib/ttk/services/FetcherClient.rb', line 18

def client
  @client
end

Instance Method Details

#start_service(uri, fetcher_uri) ⇒ Object



20
21
22
23
24
# File 'lib/ttk/services/FetcherClient.rb', line 20

def start_service(uri, fetcher_uri)
  super(uri)
  fetcher = DRbObject.new_with_uri(fetcher_uri.to_s)
  @client = Fetchers::Client.new(self, fetcher)
end