Class: QueueryClient::Configuration
- Inherits:
-
Object
- Object
- QueueryClient::Configuration
- Defined in:
- lib/queuery_client/configuration.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
- #merge(other) ⇒ Object
- #options ⇒ Object
- #reset ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/queuery_client/configuration.rb', line 3 def initialize( = {}) @options = end |
Instance Method Details
#merge(other) ⇒ Object
29 30 31 |
# File 'lib/queuery_client/configuration.rb', line 29 def merge(other) Configuration.new(to_h.merge(other.to_h)) end |
#options ⇒ Object
7 8 9 |
# File 'lib/queuery_client/configuration.rb', line 7 def @options ||= {} end |
#reset ⇒ Object
11 12 13 |
# File 'lib/queuery_client/configuration.rb', line 11 def reset @options = nil end |
#to_h ⇒ Object
33 34 35 |
# File 'lib/queuery_client/configuration.rb', line 33 def to_h end |