class Pulsedive::API

Attributes

api_key[R]

Public Class Methods

new(api_key = ENV["PULSEDIVE_API_KEY"]) click to toggle source
# File lib/pulsedive/api.rb, line 7
def initialize(api_key = ENV["PULSEDIVE_API_KEY"])
  raise(ArgumentError, "'api_key' argument is required") unless api_key

  @api_key = api_key
end

Public Instance Methods

analyze() click to toggle source
# File lib/pulsedive/api.rb, line 25
def analyze
  @analyze ||= Analyze.new(api_key)
end
feed() click to toggle source
# File lib/pulsedive/api.rb, line 21
def feed
  @feed ||= Feed.new(api_key)
end
indicator() click to toggle source
# File lib/pulsedive/api.rb, line 13
def indicator
  @indicator ||= Indicator.new(api_key)
end
threat() click to toggle source
# File lib/pulsedive/api.rb, line 17
def threat
  @threat ||= Threat.new(api_key)
end