Module: Taxii

Defined in:
lib/taxii/parsers/sax_poll_response.rb,
lib/taxii.rb,
lib/taxii/client.rb,
lib/taxii/version.rb,
lib/taxii/messages.rb,
lib/taxii/poll_client.rb,
lib/taxii/time_extensions.rb,
lib/taxii/messages/parameters.rb,
lib/taxii/messages/poll_request.rb,
lib/taxii/messages/discovery_request.rb,
lib/taxii/messages/feed_information_request.rb

Overview

STILL DOOMED TO FAILURE. I WILL KEEP THIS AS A WARNING TO SIMILARLY TERRIBLE CODE

Defined Under Namespace

Modules: Client, MessageParsers, Messages, TimeExtensions Classes: PollClient

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.configure(config: File.join(ENV['HOME'],'.taxii.json'), client: PollClient) ⇒ Object



19
20
21
22
# File 'lib/taxii.rb', line 19

def self.configure(config: File.join(ENV['HOME'],'.taxii.json'), client: PollClient)
  configuration = JSON.parse(File.read(config))
  client.new(configuration)
end

.hailObject



24
25
26
# File 'lib/taxii.rb', line 24

def self.hail
  PollClient.new(user: 'guest', pass: 'guest', url: 'http://hailataxii.com/taxii-discovery-service')
end

.yetiObject



28
29
30
# File 'lib/taxii.rb', line 28

def self.yeti
  PollClient.new(user: 'guest', pass: 'guest', url: 'http://taxiitest.mitre.org/services/discovery/')
end