Class: StructuredNoise::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/structured_noise/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#base64Object

Returns the value of attribute base64.



5
6
7
# File 'lib/structured_noise/options.rb', line 5

def base64
  @base64
end

#messages_per_secondObject

Returns the value of attribute messages_per_second.



5
6
7
# File 'lib/structured_noise/options.rb', line 5

def messages_per_second
  @messages_per_second
end

#parserObject (readonly)

Returns the value of attribute parser.



6
7
8
# File 'lib/structured_noise/options.rb', line 6

def parser
  @parser
end

#schemaObject

Returns the value of attribute schema.



5
6
7
# File 'lib/structured_noise/options.rb', line 5

def schema
  @schema
end