Sha256: ac3f8279aaa3fb6a4812269c1e2bf66c535ff13ce72c3985aa2d772199f0da79

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 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

4 entries across 4 versions & 1 rubygems

Version Path
onyphe-0.2.3 lib/onyphe/clients/onionscan.rb
onyphe-0.2.2 lib/onyphe/clients/onionscan.rb
onyphe-0.2.1 lib/onyphe/clients/onionscan.rb
onyphe-0.2.0 lib/onyphe/clients/onionscan.rb