Class: ScraperWiki::API::Matchers::HaveValuesWithAtLeastTheKeys

Inherits:
FieldKeyMatcher show all
Defined in:
lib/scraperwiki-api/matchers.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ScraperWiki::API::Matchers::CustomMatcher

Instance Method Details

#difference(v) ⇒ Object



782
783
784
# File 'lib/scraperwiki-api/matchers.rb', line 782

def difference(v)
  @expected - v.keys
end

#negative_predicateObject



790
791
792
# File 'lib/scraperwiki-api/matchers.rb', line 790

def negative_predicate
  "aren't missing keys"
end

#predicateObject



786
787
788
# File 'lib/scraperwiki-api/matchers.rb', line 786

def predicate
  'are missing keys'
end