Class: AeEasy::Qa::ValidateType
- Inherits:
-
Object
- Object
- AeEasy::Qa::ValidateType
- Includes:
- Helpers
- Defined in:
- lib/ae_easy/qa/validate_type.rb
Instance Attribute Summary collapse
-
#data_hash ⇒ Object
readonly
Returns the value of attribute data_hash.
-
#desired_type ⇒ Object
readonly
Returns the value of attribute desired_type.
-
#errored_item ⇒ Object
readonly
Returns the value of attribute errored_item.
-
#field_to_validate ⇒ Object
readonly
Returns the value of attribute field_to_validate.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(data_hash, field_to_validate, desired_type, rules, errored_item) ⇒ ValidateType
constructor
A new instance of ValidateType.
- #run ⇒ Object
Methods included from Helpers
#add_errored_item, #evaluate_condition, #pass_if?
Constructor Details
#initialize(data_hash, field_to_validate, desired_type, rules, errored_item) ⇒ ValidateType
Returns a new instance of ValidateType.
8 9 10 11 12 13 14 |
# File 'lib/ae_easy/qa/validate_type.rb', line 8 def initialize(data_hash, field_to_validate, desired_type, rules, errored_item) @data_hash = data_hash @field_to_validate = field_to_validate @desired_type = desired_type @rules = rules @errored_item = errored_item end |
Instance Attribute Details
#data_hash ⇒ Object (readonly)
Returns the value of attribute data_hash.
6 7 8 |
# File 'lib/ae_easy/qa/validate_type.rb', line 6 def data_hash @data_hash end |
#desired_type ⇒ Object (readonly)
Returns the value of attribute desired_type.
6 7 8 |
# File 'lib/ae_easy/qa/validate_type.rb', line 6 def desired_type @desired_type end |
#errored_item ⇒ Object (readonly)
Returns the value of attribute errored_item.
6 7 8 |
# File 'lib/ae_easy/qa/validate_type.rb', line 6 def errored_item @errored_item end |
#field_to_validate ⇒ Object (readonly)
Returns the value of attribute field_to_validate.
6 7 8 |
# File 'lib/ae_easy/qa/validate_type.rb', line 6 def field_to_validate @field_to_validate end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
6 7 8 |
# File 'lib/ae_easy/qa/validate_type.rb', line 6 def rules @rules end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/ae_easy/qa/validate_type.rb', line 16 def run handle_types end |