class RoadForest::Utility::Grant

Public Instance Methods

data() click to toggle source
# File lib/roadforest/interface/utility/grant.rb, line 13
def data
  [ params[:grant_name] || "no_such_grant" ]
end
new_graph() click to toggle source
# File lib/roadforest/interface/utility/grant.rb, line 17
def new_graph
  ::RDF::Graph.new
end
path_params() click to toggle source
# File lib/roadforest/interface/utility/grant.rb, line 4
def path_params
  [ :grant_name ]
end
required_grants(method) click to toggle source
# File lib/roadforest/interface/utility/grant.rb, line 8
def required_grants(method)
  #except in the unlikely case that a grant hashes to "NSG"
  [ params[:grant_name] || "no_such_grant" ]
end