class OpConnect::Item::Field

Attributes

generate?[R]
id[R]
purpose[R]
recipe[R]
section[R]
should_generate[R]
type[R]
value[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/op_connect/item/field.rb, line 8
def initialize(options = {})
  @id = options["id"]
  @purpose = options["purpose"] if options["purpose"]
  @type = options["type"] if options["type"]
  @value = options["value"]
  @should_generate = options["generate"] || false
  @recipe = GeneratorRecipe.new(options["recipe"])
  @section = Object.new(options["section"])
end