Module: Schema::Controls::Comparison::Same::Mapped

Defined in:
lib/schema/controls/comparison.rb

Class Method Summary collapse

Class Method Details

.compare_classObject



49
50
51
# File 'lib/schema/controls/comparison.rb', line 49

def self.compare_class
  Controls::Schema::Equivalent
end

.control_classObject



45
46
47
# File 'lib/schema/controls/comparison.rb', line 45

def self.control_class
  Controls::Schema::Example
end

.entriesObject



53
54
55
56
57
58
# File 'lib/schema/controls/comparison.rb', line 53

def self.entries
  [
    Entry::SomeAttribute.example,
    Entry::SomeOtherAttribute::Mapped.example
  ]
end

.exampleObject



41
42
43
# File 'lib/schema/controls/comparison.rb', line 41

def self.example
  ::Schema::Compare::Comparison.new(control_class, compare_class, entries)
end