Method: ShafClient::HalForm#fields

Defined in:
lib/shaf_client/hal_form.rb

#fieldsObject



25
26
27
28
29
# File 'lib/shaf_client/hal_form.rb', line 25

def fields
  template[:properties].map do |values|
    Field.new(values.transform_keys(&:to_sym))
  end
end