Sha256: 439efe1fc07f37a990605b1907a99b20d60967a64c34aa52acdccc395b6859eb

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

module Onyphe
  module Clients
    class Onionscan < Client
      def get_by_onion(onion, page: 1)
        raise ArgumentError, "Invalid oninon domain: #{onion}" unless Validator.valid_onion_domain?(onion)

        get("/onionscan/#{onion}", page: page) { |json| json }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onyphe-1.1.0 lib/onyphe/clients/onionscan.rb
onyphe-1.0.0 lib/onyphe/clients/onionscan.rb