Sha256: c4c2b7883f3e99d4469d56d48a69cf64826c0c7d895b0d5cb96251c069e6b1c3

Contents?: true

Size: 393 Bytes

Versions: 2

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module VirusTotal
  module Client
    module Action
      module Get
        #
        # Retrieve information about an object
        #
        # @param [String] id Object identifier
        #
        # @return [Hash]
        #
        def get(id)
          id = to_id(id)
          _get("/#{name}/#{id}") { |json| json }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virustotalx-1.2.0 lib/virustotal/clients/actions/get.rb
virustotalx-1.1.0 lib/virustotal/clients/actions/get.rb