Class: Sbmt::Pact::Matchers::V1::Equality
- 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
- #as_plugin ⇒ Object
-
#initialize(template) ⇒ Equality
constructor
A new instance of Equality.
Methods inherited from Base
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_plugin ⇒ Object
12 13 14 |
# File 'lib/sbmt/pact/matchers/v1/equality.rb', line 12 def as_plugin "matching(equalTo, #{format_primitive(@template)})" end |