Class: Gwtf::Notifier::Base
- Inherits:
-
Object
- Object
- Gwtf::Notifier::Base
- Defined in:
- lib/gwtf/notifier/base.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#recipient ⇒ Object
readonly
Returns the value of attribute recipient.
Instance Method Summary collapse
-
#initialize(item, recipient) ⇒ Base
constructor
A new instance of Base.
- #notify ⇒ Object
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
#item ⇒ Object (readonly)
Returns the value of attribute item.
4 5 6 |
# File 'lib/gwtf/notifier/base.rb', line 4 def item @item end |
#recipient ⇒ Object (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
#notify ⇒ Object
11 12 13 |
# File 'lib/gwtf/notifier/base.rb', line 11 def notify raise "Notifiers must impliment the notify method" end |