Sha256: b138283e4d7836c99518f844114fc5be0d5f486f9475428d59237350cf8333fa

Contents?: true

Size: 716 Bytes

Versions: 15

Compression:

Stored size: 716 Bytes

Contents

module Lumberg
  module Cpanel
    # Public: Allows you to create random data
    class RandomData < Base
      def self.api_module; "Rand" ; end

      # Public: Retrieve a random string
      #
      # options - Hash options for API call params (default: {})
      #   :length - Integer length of the random string you wish to receive
      #
      # Examples
      #   api_args = { host: "x.x.x.x", hash: "pass", api_username: "user" }
      #   random_data = Lumberg::Cpanel::RandomData.new(api_args.dup)
      #
      #   random_data.show
      #
      # Returns Hash API response
      def show(options = {})
        perform_request({ api_function: 'getranddata' }.merge(options))
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lumberg-4.1.0 lib/lumberg/cpanel/random_data.rb
lumberg-4.0.0 lib/lumberg/cpanel/random_data.rb
lumberg-3.1.0 lib/lumberg/cpanel/random_data.rb
lumberg-3.0.0 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.1 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre20 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre18 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre15 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre12 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre9 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre8 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre7 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre6 lib/lumberg/cpanel/random_data.rb
lumberg-2.0.0.pre5 lib/lumberg/cpanel/random_data.rb