Method: Lbp::Resource#initialize
- Defined in:
- lib/lbp/resource.rb
#initialize(resource_url, results) ⇒ Resource
48 49 50 51 52 53 54 |
# File 'lib/lbp/resource.rb', line 48 def initialize(resource_url, results) # if there are problems with results being empty # and, for example, dup or filter being called on a null class # consider changing the following line to @results = results || <an empty object for whatever results normally is> @results = results || RDF::Query::Solutions.new() @identifier = ResourceIdentifier.new(resource_url) end |