Sha256: fedac9f097ccc5708f33f59393acb10243123c005e0a1d26dd40c867a25aa4be
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lumberg-2.0.0.pre4 | lib/lumberg/cpanel/random_data.rb |
lumberg-2.0.0.pre3 | lib/lumberg/cpanel/random_data.rb |