Class: AllegroGraph::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/allegro_graph/resource.rb

Overview

The Resource class acts as a base for statement resources. It provide proxy classes that provide methods to manipulate that statements.

Direct Known Subclasses

Repository, Session

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*arguments) ⇒ Resource

Returns a new instance of Resource.



13
14
15
16
17
18
# File 'lib/allegro_graph/resource.rb', line 13

def initialize(*arguments)
  @statements = Proxy::Statements.new self
  @query      = Proxy::Query.new self
  @geometric  = Proxy::Geometric.new self
  @mapping    = Proxy::Mapping.new self
end

Instance Attribute Details

#geometricObject (readonly)

Returns the value of attribute geometric.



10
11
12
# File 'lib/allegro_graph/resource.rb', line 10

def geometric
  @geometric
end

#mappingObject (readonly)

Returns the value of attribute mapping.



11
12
13
# File 'lib/allegro_graph/resource.rb', line 11

def mapping
  @mapping
end

#queryObject (readonly)

Returns the value of attribute query.



9
10
11
# File 'lib/allegro_graph/resource.rb', line 9

def query
  @query
end

#statementsObject (readonly)

Returns the value of attribute statements.



8
9
10
# File 'lib/allegro_graph/resource.rb', line 8

def statements
  @statements
end