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

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

Defined Under Namespace

Modules: Mapped

Class Method Summary collapse

Class Method Details

.compare_classObject



29
30
31
# File 'lib/schema/controls/comparison.rb', line 29

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

.control_classObject



25
26
27
# File 'lib/schema/controls/comparison.rb', line 25

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

.entriesObject



33
34
35
36
37
38
# File 'lib/schema/controls/comparison.rb', line 33

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

.exampleObject



21
22
23
# File 'lib/schema/controls/comparison.rb', line 21

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