Class: AllegroGraph::Resource
- Inherits:
-
Object
- Object
- AllegroGraph::Resource
- 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
Instance Attribute Summary collapse
-
#geometric ⇒ Object
readonly
Returns the value of attribute geometric.
-
#mapping ⇒ Object
readonly
Returns the value of attribute mapping.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize(*arguments) ⇒ Resource
constructor
A new instance of Resource.
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
#geometric ⇒ Object (readonly)
Returns the value of attribute geometric.
10 11 12 |
# File 'lib/allegro_graph/resource.rb', line 10 def geometric @geometric end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping.
11 12 13 |
# File 'lib/allegro_graph/resource.rb', line 11 def mapping @mapping end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
9 10 11 |
# File 'lib/allegro_graph/resource.rb', line 9 def query @query end |
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
8 9 10 |
# File 'lib/allegro_graph/resource.rb', line 8 def statements @statements end |