Class: Webhookdb::Message::FakeTransport
Class Method Summary
collapse
Instance Method Summary
collapse
attr_predicate, attr_predicate_accessor, singleton_attr_accessor, singleton_attr_reader, singleton_attr_writer, singleton_method_alias, singleton_predicate_accessor, singleton_predicate_reader
Methods inherited from Transport
for, for!, #recipient, register_transport
Class Method Details
.reset! ⇒ Object
19
20
21
22
23
|
# File 'lib/webhookdb/message/fake_transport.rb', line 19
def self.reset!
self.sent_deliveries.clear
self.disable_func = nil
self.return_nil_on_send = false
end
|
Instance Method Details
#add_bodies(delivery, content) ⇒ Object
37
38
39
40
41
|
# File 'lib/webhookdb/message/fake_transport.rb', line 37
def add_bodies(delivery, content)
bodies = []
bodies << delivery.add_body(content: content.to_s, mediatype: "text/plain")
return bodies
end
|
#send!(delivery) ⇒ Object
#service ⇒ Object
29
30
31
|
# File 'lib/webhookdb/message/fake_transport.rb', line 29
def service
return "fake"
end
|
#supports_layout? ⇒ Boolean
33
34
35
|
# File 'lib/webhookdb/message/fake_transport.rb', line 33
def supports_layout?
return true
end
|
#type ⇒ Object
25
26
27
|
# File 'lib/webhookdb/message/fake_transport.rb', line 25
def type
return :fake
end
|