Class: S2D::Transports::Transport
- Inherits:
-
Object
- Object
- S2D::Transports::Transport
- Defined in:
- lib/s2d/transports/transport.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#attributes ⇒ Object
Config wizard uses this information to collect required and optional config parameters.
- #deliver(message) ⇒ Object
-
#initialize(config) ⇒ Transport
constructor
A new instance of Transport.
- #to_s ⇒ Object
Constructor Details
#initialize(config) ⇒ Transport
Returns a new instance of Transport.
6 7 8 |
# File 'lib/s2d/transports/transport.rb', line 6 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/s2d/transports/transport.rb', line 4 def config @config end |
Instance Method Details
#attributes ⇒ Object
Config wizard uses this information to collect required and optional config parameters
18 19 20 |
# File 'lib/s2d/transports/transport.rb', line 18 def attributes [] end |
#deliver(message) ⇒ Object
10 11 12 |
# File 'lib/s2d/transports/transport.rb', line 10 def deliver() raise "Transport class #{self.class} does not implement #deliver(message)" end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/s2d/transports/transport.rb', line 22 def to_s self.class.name.demodulize end |