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