Class: StructuredNoise::Options
- Inherits:
-
Object
- Object
- StructuredNoise::Options
- Defined in:
- lib/structured_noise/options.rb
Instance Attribute Summary collapse
-
#base64 ⇒ Object
Returns the value of attribute base64.
-
#messages_per_second ⇒ Object
Returns the value of attribute messages_per_second.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(scriptname, args) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(scriptname, args) ⇒ Options
Returns a new instance of Options.
8 9 10 11 12 |
# File 'lib/structured_noise/options.rb', line 8 def initialize(scriptname, args) @base64 = false @parser = build_parser(scriptname) @parser.parse!(args) end |
Instance Attribute Details
#base64 ⇒ Object
Returns the value of attribute base64.
5 6 7 |
# File 'lib/structured_noise/options.rb', line 5 def base64 @base64 end |
#messages_per_second ⇒ Object
Returns the value of attribute messages_per_second.
5 6 7 |
# File 'lib/structured_noise/options.rb', line 5 def @messages_per_second end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
6 7 8 |
# File 'lib/structured_noise/options.rb', line 6 def parser @parser end |
#schema ⇒ Object
Returns the value of attribute schema.
5 6 7 |
# File 'lib/structured_noise/options.rb', line 5 def schema @schema end |