Class: Maildrop::Mailbox

Inherits:
Object
  • Object
show all
Defined in:
lib/maildrop/mailbox.rb

Class Method Summary collapse

Class Method Details

.get(name) ⇒ Object



4
5
6
# File 'lib/maildrop/mailbox.rb', line 4

def get(name)
  build_model(name)
end

.random_getObject



8
9
10
11
# File 'lib/maildrop/mailbox.rb', line 8

def random_get
  name = SecureRandom.hex(12)
  build_model(name)
end