Class: Sbmt::Pact::Matchers::V1::Equality

Inherits:
Base
  • Object
show all
Defined in:
lib/sbmt/pact/matchers/v1/equality.rb

Instance Attribute Summary

Attributes inherited from Base

#kind, #opts, #spec_version, #template

Instance Method Summary collapse

Methods inherited from Base

#as_basic

Constructor Details

#initialize(template) ⇒ Equality

Returns a new instance of Equality.



8
9
10
# File 'lib/sbmt/pact/matchers/v1/equality.rb', line 8

def initialize(template)
  super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V1, kind: "equality", template: template)
end

Instance Method Details

#as_pluginObject



12
13
14
# File 'lib/sbmt/pact/matchers/v1/equality.rb', line 12

def as_plugin
  "matching(equalTo, #{format_primitive(@template)})"
end