Class: Apstrings::ValidateResult
- Inherits:
-
Object
- Object
- Apstrings::ValidateResult
- Defined in:
- lib/apstrings/strings_validator.rb
Instance Attribute Summary collapse
-
#dup_keys ⇒ Object
Returns the value of attribute dup_keys.
-
#file_format_errors ⇒ Object
Returns the value of attribute file_format_errors.
-
#file_special_character_errors ⇒ Object
Returns the value of attribute file_special_character_errors.
-
#master_special_character_error ⇒ Object
Returns the value of attribute master_special_character_error.
-
#missing_keys ⇒ Object
Returns the value of attribute missing_keys.
-
#valid_file_format ⇒ Object
Returns the value of attribute valid_file_format.
Instance Method Summary collapse
-
#initialize(file, masterFile, file_special_character_errors = [], master_special_character_error = [], missing_keys = [], dup_keys = [], file_format_errors = [], valid_file_format = true) ⇒ ValidateResult
constructor
A new instance of ValidateResult.
- #to_hash ⇒ Object
Constructor Details
#initialize(file, masterFile, file_special_character_errors = [], master_special_character_error = [], missing_keys = [], dup_keys = [], file_format_errors = [], valid_file_format = true) ⇒ ValidateResult
Returns a new instance of ValidateResult.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/apstrings/strings_validator.rb', line 16 def initialize(file,masterFile, file_special_character_errors=[], master_special_character_error=[], missing_keys=[], dup_keys=[],file_format_errors=[], valid_file_format=true) @file = file @masterFile = masterFile @file_special_character_errors = file_special_character_errors @master_special_character_error = master_special_character_error @missing_keys = missing_keys @dup_keys = dup_keys @file_format_errors = file_format_errors @valid_file_format = valid_file_format end |
Instance Attribute Details
#dup_keys ⇒ Object
Returns the value of attribute dup_keys.
11 12 13 |
# File 'lib/apstrings/strings_validator.rb', line 11 def dup_keys @dup_keys end |
#file_format_errors ⇒ Object
Returns the value of attribute file_format_errors.
12 13 14 |
# File 'lib/apstrings/strings_validator.rb', line 12 def file_format_errors @file_format_errors end |
#file_special_character_errors ⇒ Object
Returns the value of attribute file_special_character_errors.
9 10 11 |
# File 'lib/apstrings/strings_validator.rb', line 9 def file_special_character_errors @file_special_character_errors end |
#master_special_character_error ⇒ Object
Returns the value of attribute master_special_character_error.
8 9 10 |
# File 'lib/apstrings/strings_validator.rb', line 8 def master_special_character_error @master_special_character_error end |
#missing_keys ⇒ Object
Returns the value of attribute missing_keys.
10 11 12 |
# File 'lib/apstrings/strings_validator.rb', line 10 def missing_keys @missing_keys end |
#valid_file_format ⇒ Object
Returns the value of attribute valid_file_format.
13 14 15 |
# File 'lib/apstrings/strings_validator.rb', line 13 def valid_file_format @valid_file_format end |
Instance Method Details
#to_hash ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/apstrings/strings_validator.rb', line 33 def to_hash { :file=> @file, :masterFile => @masterFile, :master_special_character_error => @master_special_character_error, :file_special_character_errors => @file_special_character_errors , :missing_keys => @missing_keys , :dup_keys => @dup_keys, :file_format_errors => @file_format_errors, :valid_file_format => @valid_file_format } end |