Sha256: c349238baf6f65b29f955a4e98b285a17f44d926fa7f14209031a0feb081dff8

Contents?: true

Size: 316 Bytes

Versions: 14

Compression:

Stored size: 316 Bytes

Contents

class Forgery::Email < Forgery

  def self.address
    Forgery::Internet.email_address
  end

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

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

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
forgery-0.8.1 lib/forgery/forgery/email.rb
forgery-0.7.0 lib/forgery/forgery/email.rb
forgery-0.6.0 lib/forgery/forgery/email.rb
forgery-0.5.0 lib/forgery/forgery/email.rb
forgery-0.4.4 lib/forgery/forgery/email.rb
forgery-0.4.3 lib/forgery/forgery/email.rb
forgery-0.4.2 lib/forgery/forgery/email.rb
forgery-0.4.1 lib/forgery/forgery/email.rb
forgery-0.4.0 lib/forgery/forgery/email.rb
forgery-0.3.12 lib/forgery/forgery/email.rb
forgery-0.3.11 lib/forgery/forgery/email.rb
forgery-0.3.10 lib/forgery/forgery/email.rb
forgery-0.3.9 lib/forgery/forgery/email.rb
forgery-0.3.8 lib/forgery/forgery/email.rb