Class: QueueryClient::Configuration
- Inherits:
-
Object
- Object
- QueueryClient::Configuration
- Defined in:
- lib/queuery_client/configuration.rb
Constant Summary collapse
- REQUIRED_KEYS =
[:endpoint, :token, :token_secret]
- OPTIONAL_KEYS =
[:host_header]
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.
6 7 8 |
# File 'lib/queuery_client/configuration.rb', line 6 def initialize( = {}) @options = end |
Instance Method Details
#merge(other) ⇒ Object
38 39 40 |
# File 'lib/queuery_client/configuration.rb', line 38 def merge(other) Configuration.new(to_h.merge(other.to_h)) end |
#options ⇒ Object
10 11 12 |
# File 'lib/queuery_client/configuration.rb', line 10 def @options ||= {} end |
#reset ⇒ Object
14 15 16 |
# File 'lib/queuery_client/configuration.rb', line 14 def reset @options = nil end |
#to_h ⇒ Object
42 43 44 |
# File 'lib/queuery_client/configuration.rb', line 42 def to_h end |