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.
14 15 16 |
# File 'lib/mq.rb', line 14 def initialize @input_format = nil end |
Instance Attribute Details
#input_format ⇒ Object
Returns the value of attribute input_format.
12 13 14 |
# File 'lib/mq.rb', line 12 def input_format @input_format end |
Instance Method Details
#to_h ⇒ Object
18 19 20 21 22 |
# File 'lib/mq.rb', line 18 def to_h { input_format: @input_format, }.compact end |