Class: CC::Service::Flowdock
- Inherits:
-
CC::Service
- Object
- CC::Service
- CC::Service::Flowdock
- Defined in:
- lib/cc/services/flowdock.rb
Defined Under Namespace
Classes: Config
Constant Summary collapse
- BASE_URL =
"https://api.flowdock.com/v1".freeze
- INVALID_PROJECT_CHARACTERS =
/[^0-9a-z\-_ ]+/i
Constants inherited from CC::Service
ABSTRACT_SLUGS, ALL_EVENTS, ConfigurationError, Error
Constants included from Helper
Helper::GREEN_HEX, Helper::RED_HEX
Constants included from HTTP
Instance Attribute Summary
Attributes inherited from CC::Service
Instance Method Summary collapse
- #receive_coverage ⇒ Object
- #receive_quality ⇒ Object
- #receive_test ⇒ Object
- #receive_vulnerability ⇒ Object
Methods inherited from CC::Service
by_slug, inherited, #initialize, load_services, #receive, services, slug
Methods included from Helper
#changed, #color, #compare_url, #details_url, #emoji, #hex_color, #improved?, #repo_name
Methods included from HTTP
#ca_file, #formatted_post_response, #http, #http_method, #raw_get, #raw_post, #service_get, #service_post, #service_post_with_redirects
Constructor Details
This class inherits a constructor from CC::Service
Instance Method Details
#receive_coverage ⇒ Object
21 22 23 |
# File 'lib/cc/services/flowdock.rb', line 21 def receive_coverage notify("Coverage", repo_name, formatter.format_coverage) end |
#receive_quality ⇒ Object
25 26 27 |
# File 'lib/cc/services/flowdock.rb', line 25 def receive_quality notify("Quality", repo_name, formatter.format_quality) end |
#receive_test ⇒ Object
15 16 17 18 19 |
# File 'lib/cc/services/flowdock.rb', line 15 def receive_test notify("Test", repo_name, formatter.format_test).merge( message: "Test message sent", ) end |
#receive_vulnerability ⇒ Object
29 30 31 |
# File 'lib/cc/services/flowdock.rb', line 29 def receive_vulnerability notify("Vulnerability", repo_name, formatter.format_vulnerability) end |