Class: CC::Service::HipChat
- Inherits:
-
CC::Service
- Object
- CC::Service
- CC::Service::HipChat
- Defined in:
- lib/cc/services/hipchat.rb
Defined Under Namespace
Classes: Config
Constant Summary collapse
- BASE_URL =
"https://api.hipchat.com/v1".freeze
Constants inherited from CC::Service
ABSTRACT_SLUGS, ALL_EVENTS, ConfigurationError, Error
Constants included from Helper
CC::Service::Helper::GREEN_HEX, CC::Service::Helper::RED_HEX
Constants included from HTTP
CC::Service::HTTP::REDIRECT_CODES
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
26 27 28 |
# File 'lib/cc/services/hipchat.rb', line 26 def receive_coverage speak(formatter.format_coverage, color) end |
#receive_quality ⇒ Object
30 31 32 |
# File 'lib/cc/services/hipchat.rb', line 30 def receive_quality speak(formatter.format_quality, color) end |
#receive_test ⇒ Object
20 21 22 23 24 |
# File 'lib/cc/services/hipchat.rb', line 20 def receive_test speak(formatter.format_test, "green").merge( message: "Test message sent", ) end |
#receive_vulnerability ⇒ Object
34 35 36 |
# File 'lib/cc/services/hipchat.rb', line 34 def receive_vulnerability speak(formatter.format_vulnerability, "red") end |