Sha256: 8dccaec2f6b2bb67c96af305152caa4c79ddecb87cd432a2b19ebcc958e62aa6
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
module EnoughFields class Notification attr_accessor :notifier def initialize(call_stack, klass, fields) @call_stack = call_stack @klass = klass @fields = fields end def full_notice "add .only(:#{@fields.join(", :")}) for\n#{@call_stack.join("\n")}" end def notify_inline self.notifier.inline_notify( self.full_notice ) end def notify_out_of_channel self.notifier.out_of_channel_notify( self.full_notice ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enough_fields-0.0.3 | lib/enough_fields/notification.rb |
enough_fields-0.0.2 | lib/enough_fields/notification.rb |