lib/hal_client/form/field.rb
# Initializes a new field.
#
# parsed_json - the parsed JSON of the field
Initializes a new field.
parsed_json - the parsed JSON of the field
Initializes a new field . parsed_json - the parsed JSON of the field
def extract_answer(answers)
        return value if :hidden == type
        key = aliases.find{|maybe_key| answers.has_key?(maybe_key) }
        coerce_value(answers.fetch(key, value))
      end
def extract_answer ( answers ) return value if :hidden == type key = aliases . find { | maybe_key | answers . has_key? ( maybe_key ) } coerce_value ( answers . fetch ( key , value ) ) end
Initializes a new field.
Initializes a new field .
answers
<not_specific>