Class: Lutaml::Model::Validation::Report
- Inherits:
-
Serializable
- Object
- Serializable
- Lutaml::Model::Validation::Report
- Includes:
- HasIssues
- Defined in:
- lib/lutaml/model/validation/report.rb
Constant Summary
Constants included from Serialize
Serialize::DEFAULT_VALUE_MAP, Serialize::INTERNAL_ATTRIBUTES, Serialize::LAZY_EMPTY_COLLECTION
Instance Attribute Summary
Attributes included from Serialize
#lutaml_parent, #lutaml_register, #lutaml_root
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Report
constructor
A new instance of Report.
- #issues ⇒ Object
Methods included from HasIssues
#errors, #infos, #notices, #warnings
Methods included from Serialize
#attr_value, #attribute_exist?, #extract_register_id, included, #init_deserialization_state, #key_exist?, #key_value, #method_missing, #prepare_instance_format_options, #pretty_print_instance_variables, register_format_mapping_method, register_from_format_method, register_to_format_method, #respond_to_missing?, #to_format, #to_yaml_hash, #using_default?, #using_default_for, #validate_attribute!, #validate_root_mapping!, #value_map, #value_set_for
Methods included from Liquefiable
Methods included from Lutaml::Model::Validation
#format_element_sequences, new_registry, #order_names, #validate, validate, #validate!, validate!, #validate_helper, #validate_sequence!
Methods included from ComparableModel
#already_compared?, #attributes_hash, #calculate_hash, #comparison_key, #eql?, #hash, included, #same_class?
Methods included from Serialize::Builder
Constructor Details
#initialize(attributes = {}) ⇒ Report
Returns a new instance of Report.
28 29 30 31 |
# File 'lib/lutaml/model/validation/report.rb', line 28 def initialize(attributes = {}) super self. ||= Time.now.utc.iso8601 end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Lutaml::Model::Serialize
Instance Method Details
#issues ⇒ Object
33 34 35 |
# File 'lib/lutaml/model/validation/report.rb', line 33 def issues layers ? layers.flat_map(&:issues) : [] end |