Parent

Methods

DataMapper::Property::APIKey

Constants

PADDING

The amount of random seed data to use to generate tha API Key

Public Class Methods

generate() click to toggle source

Generates a new API Key.

@return [String]

  The new API Key.
    # File lib/dm-types/api_key.rb, line 22
22:       def self.generate
23:         sha1 = Digest::SHA1.new
24: 
25:         PADDING.times { sha1 << rand(256).chr }
26:         return sha1.hexdigest
27:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.