Class: Gwtf::Notifier::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gwtf/notifier/base.rb

Direct Known Subclasses

Boxcar, Email, Notifo, Pushover

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item, recipient) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/gwtf/notifier/base.rb', line 6

def initialize(item, recipient)
  @item = item
  @recipient = recipient
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



4
5
6
# File 'lib/gwtf/notifier/base.rb', line 4

def item
  @item
end

#recipientObject (readonly)

Returns the value of attribute recipient.



4
5
6
# File 'lib/gwtf/notifier/base.rb', line 4

def recipient
  @recipient
end

Instance Method Details

#notifyObject



11
12
13
# File 'lib/gwtf/notifier/base.rb', line 11

def notify
  raise "Notifiers must impliment the notify method"
end