Class: Wallaby::FieldsRegulator
- Inherits:
-
Struct
- Object
- Struct
- Wallaby::FieldsRegulator
- Defined in:
- lib/services/wallaby/fields_regulator.rb
Overview
Validate and convert the field metadata to ‘ActiveSupport::HashWithIndifferentAccess`
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
Instance Method Summary collapse
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields
5 6 7 |
# File 'lib/services/wallaby/fields_regulator.rb', line 5 def fields @fields end |
Instance Method Details
#execute ⇒ ActiveSupport::HashWithIndifferentAccess
7 8 9 10 11 |
# File 'lib/services/wallaby/fields_regulator.rb', line 7 def execute ensure_fields_is_a_hash ensure_type_is_present normalized_fields end |