Class: MetadataPresenter::Conditional
- Defined in:
- app/models/metadata_presenter/conditional.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/conditional.rb', line 3 def ==(other) .to_h.deep_symbolize_keys == other..to_h.deep_symbolize_keys end |
#expressions ⇒ Object
7 8 9 10 11 |
# File 'app/models/metadata_presenter/conditional.rb', line 7 def expressions Array(.expressions).map do |expression| MetadataPresenter::Expression.new(expression) end end |