Module: FabApi::Utils::Id
- Defined in:
- lib/fab_api/utils/id.rb
Class Method Summary collapse
-
.generate ⇒ Object
Make sure identifier start with AS, followed by any unique characters and max length of 24 characters.
Class Method Details
.generate ⇒ Object
Make sure identifier start with AS, followed by any unique characters and max length of 24 characters.
8 9 10 |
# File 'lib/fab_api/utils/id.rb', line 8 def self.generate "AS#{SecureRandom.hex(11)}" end |