Class: Smess::Output
- Inherits:
-
Object
- Object
- Smess::Output
- Defined in:
- lib/smess/output.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#sms ⇒ Object
Returns the value of attribute sms.
Instance Method Summary collapse
-
#deliver ⇒ Object
entry point to the sms delivery process.
-
#initialize(config) ⇒ Output
constructor
A new instance of Output.
-
#validate_config ⇒ Object
should be used to make a reasonable validation that the configuration provided is good.
Constructor Details
#initialize(config) ⇒ Output
Returns a new instance of Output.
7 8 9 10 |
# File 'lib/smess/output.rb', line 7 def initialize(config) @config = config validate_config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/smess/output.rb', line 5 def config @config end |
#sms ⇒ Object
Returns the value of attribute sms.
4 5 6 |
# File 'lib/smess/output.rb', line 4 def sms @sms end |
Instance Method Details
#deliver ⇒ Object
entry point to the sms delivery process.
18 19 20 |
# File 'lib/smess/output.rb', line 18 def deliver raise NotImplementedError.new("You must define deliver in your Smess output class") end |
#validate_config ⇒ Object
should be used to make a reasonable validation that the configuration provided is good.
13 14 15 |
# File 'lib/smess/output.rb', line 13 def validate_config raise NotImplementedError.new("You must define validate_config in your Smess output class") end |