Class: S2D::Transports::Transport

Inherits:
Object
  • Object
show all
Defined in:
lib/s2d/transports/transport.rb

Direct Known Subclasses

Prowler

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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

#attributesObject

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(message)
  raise "Transport class #{self.class} does not implement #deliver(message)"
end

#to_sObject



22
23
24
# File 'lib/s2d/transports/transport.rb', line 22

def to_s
  self.class.name.demodulize
end