Module: Gitil
- Defined in:
- lib/gitdb/util.rb
Defined Under Namespace
Classes: Hash
Class Method Summary collapse
Class Method Details
.data_keys_of_card ⇒ Object
7 8 9 |
# File 'lib/gitdb/util.rb', line 7 def self::data_keys_of_card ["firstname", "lastname", "mobile", "phone", "email", "birthday", "address", "im", "note"] end |
.generate_code(n) ⇒ Object
3 4 5 |
# File 'lib/gitdb/util.rb', line 3 def self::generate_code n [*'a'..'z', *0..9, *'A'..'Z'].sample(n).join end |
.meta_keys_of_card ⇒ Object
11 12 13 |
# File 'lib/gitdb/util.rb', line 11 def self:: ["id", "owner"] end |