Class: RoadForest::Utility::Grant

Inherits:
Interface::RDF show all
Defined in:
lib/roadforest/interface/utility/grant.rb

Instance Attribute Summary

Attributes inherited from Application

#services

Instance Method Summary collapse

Methods inherited from Interface::RDF

#add_child, #add_graph_child, #augment_graph, #copy_interface, #current_graph, #error_data, #etag, #etag_graph, #fill_graph, #graph_update, #payload_focus, #payload_pair, #retrieve, #update

Methods included from Graph::Helpers::Focus

#start_focus

Methods included from Graph::Etagging

#blank_mapped, #etag_from, #sorted_quads

Methods inherited from Application

#canonical_host, #default_content_engine, #dispatcher, #initialize

Constructor Details

This class inherits a constructor from RoadForest::Application

Instance Method Details

#dataObject



13
14
15
# File 'lib/roadforest/interface/utility/grant.rb', line 13

def data
  [ params[:grant_name] || "no_such_grant" ]
end

#new_graphObject



17
18
19
# File 'lib/roadforest/interface/utility/grant.rb', line 17

def new_graph
  ::RDF::Graph.new
end

#path_paramsObject



4
5
6
# File 'lib/roadforest/interface/utility/grant.rb', line 4

def path_params
  [ :grant_name ]
end

#required_grants(method) ⇒ Object



8
9
10
11
# 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