Class: Naminori::Notifier::Base
- Inherits:
-
Object
- Object
- Naminori::Notifier::Base
- Defined in:
- lib/naminori/notifier/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #notifier(type, message) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/naminori/notifier/base.rb', line 6 def initialize() @config = Naminori::Notifier::Configure.instance end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/naminori/notifier/base.rb', line 5 def config @config end |
Instance Method Details
#notifier(type, message) ⇒ Object
10 11 12 |
# File 'lib/naminori/notifier/base.rb', line 10 def notifier(type, ) raise "Called abstract method: add_server" end |