Class: MQ::Options
- Inherits:
-
Object
- Object
- MQ::Options
- Defined in:
- lib/mq.rb
Overview
Options class for configuring mq queries
Instance Attribute Summary collapse
-
#input_format ⇒ Object
Returns the value of attribute input_format.
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
18 19 20 |
# File 'lib/mq.rb', line 18 def initialize @input_format = nil end |
Instance Attribute Details
#input_format ⇒ Object
Returns the value of attribute input_format.
16 17 18 |
# File 'lib/mq.rb', line 16 def input_format @input_format end |
Instance Method Details
#to_h ⇒ Object
22 23 24 25 26 |
# File 'lib/mq.rb', line 22 def to_h { input_format: @input_format, }.compact end |