Sha256: e779e0f5bdc826e1e1a5de69253f543dac541656fed09a0e651e29a5ba947298

Contents?: true

Size: 372 Bytes

Versions: 11

Compression:

Stored size: 372 Bytes

Contents

class Note
  
  attr_accessor :from
  attr_accessor :subject
  attr_accessor :message
  attr_accessor :at
  
  
  sandboxed_methods :from, :subject, :message, :at

  def initialize(all_users)
    @from = all_users[(rand * all_users.length).floor]
    @subject = Faker::Lorem.sentence
    @message = Faker::Lorem.paragraph
    @at = DateTime.now - (rand * 10000)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sandboxed_erb-0.4.8 example/note.rb
sandboxed_erb-0.4.7 example/note.rb
sandboxed_erb-0.4.6 example/note.rb
sandboxed_erb-0.4.5 example/note.rb
sandboxed_erb-0.4.4 example/note.rb
sandboxed_erb-0.4.3 example/note.rb
sandboxed_erb-0.4.2 example/note.rb
sandboxed_erb-0.4.1 example/note.rb
sandboxed_erb-0.4.0 example/note.rb
sandboxed_erb-0.3.0 example/note.rb
sandboxed_erb-0.2.0 example/note.rb