Class: ScraperWiki::API::Matchers::HaveBlankValues

Inherits:
FieldMatcher 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

#failure_predicateObject



591
592
593
# File 'lib/scraperwiki-api/matchers.rb', line 591

def failure_predicate
  'are blank'
end

#match?(v) ⇒ Boolean

Returns:

  • (Boolean)


587
588
589
# File 'lib/scraperwiki-api/matchers.rb', line 587

def match?(v)
  blank? v
end

#negative_failure_predicateObject



595
596
597
# File 'lib/scraperwiki-api/matchers.rb', line 595

def negative_failure_predicate
  'are present'
end