Class: Forgery::Email

Inherits:
Forgery show all
Defined in:
lib/forgery/forgery/email.rb

Constant Summary

Constant Summary

Constants inherited from Forgery

VERSION

Class Method Summary (collapse)

Methods inherited from Forgery

Extend, dictionaries, formats, load_from!, load_paths, rails?, rails_root

Class Method Details

+ (Object) address



3
4
5
# File 'lib/forgery/forgery/email.rb', line 3

def self.address
  Forgery::Internet.email_address
end

+ (Object) body(options = {})



11
12
13
14
# File 'lib/forgery/forgery/email.rb', line 11

def self.body(options={})
  quantity = options[:quantity] || (1 + rand(10))
  Forgery::LoremIpsum.paragraphs(quantity, options)
end

+ (Object) subject(options = {})



7
8
9
# File 'lib/forgery/forgery/email.rb', line 7

def self.subject(options={})
  Forgery::LoremIpsum.title(options)
end