Class: ActiveTriple::Connectors::TripleStoreConnector
- Inherits:
-
Object
- Object
- ActiveTriple::Connectors::TripleStoreConnector
- Defined in:
- lib/active_triple/connectors/triple_store_connector.rb
Direct Known Subclasses
Class Method Summary collapse
-
.send_data(args = {}) ⇒ Object
Method used to initial a connection and send data.
Instance Method Summary collapse
-
#initialize ⇒ TripleStoreConnector
constructor
A new instance of TripleStoreConnector.
-
#response ⇒ Object
Response should be an array of objects holding the data returned by the server or an empty array.
Constructor Details
#initialize ⇒ TripleStoreConnector
Returns a new instance of TripleStoreConnector.
6 7 8 |
# File 'lib/active_triple/connectors/triple_store_connector.rb', line 6 def initialize end |
Class Method Details
.send_data(args = {}) ⇒ Object
Method used to initial a connection and send data.
11 12 13 14 |
# File 'lib/active_triple/connectors/triple_store_connector.rb', line 11 def self.send_data(args = {}) required_arguments.each{|arg| raise "args must include :#{arg}" unless args.keys.include?(arg.to_sym)} raise "Need to define how connector sends data to server" end |
Instance Method Details
#response ⇒ Object
Response should be an array of objects holding the data returned by the server or an empty array
18 19 20 |
# File 'lib/active_triple/connectors/triple_store_connector.rb', line 18 def response raise "Need to define how connector handles response" end |