Class: OpConnect::Item::GeneratorRecipe

Inherits:
Object
  • Object
show all
Defined in:
lib/op_connect/item/generator_recipe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ GeneratorRecipe

Returns a new instance of GeneratorRecipe.



6
7
8
9
# File 'lib/op_connect/item/generator_recipe.rb', line 6

def initialize(options = {})
  @length = options["length"] if options & ["length"]
  @character_sets = options["characterSets"] if options & ["characterSets"]
end

Instance Attribute Details

#character_setsObject (readonly)

Returns the value of attribute character_sets.



4
5
6
# File 'lib/op_connect/item/generator_recipe.rb', line 4

def character_sets
  @character_sets
end

#lengthObject (readonly)

Returns the value of attribute length.



4
5
6
# File 'lib/op_connect/item/generator_recipe.rb', line 4

def length
  @length
end