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