Class: ActiveTriple::Connectors::TripleStoreConnector

Inherits:
Object
  • Object
show all
Defined in:
lib/active_triple/connectors/triple_store_connector.rb

Direct Known Subclasses

PostToUrlConnector

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTripleStoreConnector

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

#responseObject

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