Class: MetadataPresenter::Condition
- Defined in:
- app/models/metadata_presenter/condition.rb
Instance Attribute Summary
Attributes inherited from Metadata
Instance Method Summary collapse
Methods inherited from Metadata
#editor?, #id, #initialize, #method_missing, #respond_to_missing?, #to_json, #type, #uuid
Constructor Details
This class inherits a constructor from MetadataPresenter::Metadata
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MetadataPresenter::Metadata
Instance Method Details
#==(other) ⇒ Object
3 4 5 |
# File 'app/models/metadata_presenter/condition.rb', line 3 def ==(other) .to_h.deep_symbolize_keys == other..to_h.deep_symbolize_keys end |
#criterias ⇒ Object
7 8 9 10 11 |
# File 'app/models/metadata_presenter/condition.rb', line 7 def criterias Array(.criterias).map do |criteria| MetadataPresenter::Criteria.new(criteria) end end |