Class: CoreClientBuilder
- Inherits:
-
Object
show all
- Defined in:
- lib/smartystreets_ruby_sdk/core_client_builder.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of CoreClientBuilder.
10
11
12
13
14
15
16
17
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 10
def initialize(signer)
@signer = signer
@serializer = NativeSerializer.new
@http_sender = nil
@max_retries = 5
@max_timeout = 10000
@url_prefix = ''
end
|
Instance Method Details
#build ⇒ Object
39
40
41
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 39
def build
end
|
#retry_at_most(max_retries) ⇒ Object
19
20
21
22
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 19
def retry_at_most(max_retries)
@max_retries = max_retries
self
end
|
#with_max_timeout(max_timeout) ⇒ Object
24
25
26
27
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 24
def with_max_timeout(max_timeout)
@max_timeout = max_timeout
self
end
|
#with_serializer(serializer) ⇒ Object
29
30
31
32
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 29
def with_serializer(serializer)
@serializer = serializer
self
end
|
#with_url(url_prefix) ⇒ Object
34
35
36
37
|
# File 'lib/smartystreets_ruby_sdk/core_client_builder.rb', line 34
def with_url(url_prefix)
@url_prefix = url_prefix
self
end
|