Module: Consumer::Controls::Identifier
- Defined in:
- lib/consumer/controls/identifier.rb
Class Method Summary collapse
Class Method Details
.example(random: nil) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/consumer/controls/identifier.rb', line 4 def self.example(random: nil) random ||= false unless random 'some-consumer' else "some-consumer-#{SecureRandom.hex(8)}" end end |
.random ⇒ Object
14 15 16 |
# File 'lib/consumer/controls/identifier.rb', line 14 def self.random example(random: true) end |