Class: Riddl::Wrapper::ResourceChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/wrapper/resourcechecker.rb

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ ResourceChecker

Returns a new instance of ResourceChecker.



4
5
6
# File 'lib/ruby/riddl/wrapper/resourcechecker.rb', line 4

def initialize(doc)
  @doc = doc
end

Instance Method Details

#checkObject



8
9
10
# File 'lib/ruby/riddl/wrapper/resourcechecker.rb', line 8

def check
  check_rec_resources(@doc.find("/des:description/des:resource"))
end