Sha256: 1f368246f5ecf358d62b32a7d0a799ff623e49fb690df9931d555c5349ed0407

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

module Ivapi
  class Client
    class Hosting < Base
      attr_reader :hosting_id

      def initialize(client, hosting_id)
        super(client)
        @hosting_id = hosting_id
      end

      def information
        params = { command: 'hosting_info', id: hosting_id }
        get('/json.php', params)
      end
      alias info information
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ivapi-1.9.0 lib/ivapi/client/hosting.rb
ivapi-1.8.0 lib/ivapi/client/hosting.rb
ivapi-1.7.0 lib/ivapi/client/hosting.rb
ivapi-1.6.1 lib/ivapi/client/hosting.rb
ivapi-1.6.0 lib/ivapi/client/hosting.rb