Sha256: e92e8c20c39a84c1c6e5f718ee024b8eb5a42826c3da0e9c6e12f8c55fb87f02
Contents?: true
Size: 363 Bytes
Versions: 4
Compression:
Stored size: 363 Bytes
Contents
class ActivityFactory def self.create(params = {}) params.reverse_merge!({ application_id: 456, user_id: 123, content: "This is the content ##{sequence}" }) RestPack::Activity::Service::Commands::Activity::Create.run!(params) end private def self.sequence @@sequence ||= 0 @@sequence += 1 @@sequence end end
Version data entries
4 entries across 4 versions & 1 rubygems