Sha256: f786b4210d898ed26135f3a4353f6d866bc1f7def470bc4a8e6464f9c7d24942

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module GreyNoise
  class API
    def initialize(key: ENV["GREYNOISE_API_KEY"])
      @key = key
    end

    def experimental
      @experimental ||= Clients::Experimental.new(@key)
    end

    def meta
      @meta ||= Clients::Meta.new(@key)
    end

    def noise
      @noise ||= Clients::Noise.new(@key)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greynoise-0.1.0 lib/greynoise/api.rb