Class: Neography::Rest::Relationships
- Inherits:
-
Object
- Object
- Neography::Rest::Relationships
- Extended by:
- Paths
- Includes:
- Helpers
- Defined in:
- lib/neography/rest/relationships.rb
Instance Method Summary collapse
- #delete(id) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(connection) ⇒ Relationships
constructor
A new instance of Relationships.
Methods included from Paths
Methods included from Helpers
#get_id, #json_content_type, #parse_direction
Constructor Details
#initialize(connection) ⇒ Relationships
Returns a new instance of Relationships.
9 10 11 |
# File 'lib/neography/rest/relationships.rb', line 9 def initialize(connection) @connection = connection end |
Instance Method Details
#delete(id) ⇒ Object
17 18 19 |
# File 'lib/neography/rest/relationships.rb', line 17 def delete(id) @connection.delete(base_path(:id => get_id(id))) end |
#get(id) ⇒ Object
13 14 15 |
# File 'lib/neography/rest/relationships.rb', line 13 def get(id) @connection.get(base_path(:id => get_id(id))) end |