module Resync::Client::Mixins::ClientDelegator

An object that delegates to another to provide a {Client} for downloading resources and links.

@!attribute [rw] client_delegate

@return [#client] The client provider.

Attributes

client_delegate[RW]

Public Instance Methods

client() click to toggle source
# File lib/resync/client/mixins/client_delegator.rb, line 14
def client
  client_delegate.client
end
client=(value) click to toggle source

Creates a one-off delegate wrapper around the specified {Client} @param value [Client] the client

# File lib/resync/client/mixins/client_delegator.rb, line 20
def client=(value)
  @client_delegate = ClientDelegate.new(value)
end