Class: Timezone::Lookup::OptionSetter
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/timezone/lookup.rb |
Overview
Responsible for collecting options in the DSL and creating lookup objects using those options.
Constant Summary
Class Method Summary
- .new(lookup) ⇒ OptionSetter constructor
Instance Attribute Summary
- #config readonly
Instance Method Summary
Constructor Details
.new(lookup) ⇒ OptionSetter
Instance Attribute Details
#config (readonly)
[ GitHub ]# File 'lib/timezone/lookup.rb', line 51
attr_reader :config
Instance Method Details
#make_lookup
[ GitHub ]# File 'lib/timezone/lookup.rb', line 65
def make_lookup config.request_handler ||= ::Timezone::NetHTTPClient @lookup.new(config) end