class SimpleCov::Formatter::IdobataFormatter
Constants
- VERSION
Attributes
goal[RW]
hook_url[RW]
warning[RW]
Public Class Methods
new()
click to toggle source
# File lib/simplecov/idobata.rb, line 11 def initialize @hook_url = self.class.hook_url || ENV['SIMPLECOV_IDOBATA_HOOK_URL'] end
Public Instance Methods
format(result)
click to toggle source
# File lib/simplecov/idobata.rb, line 15 def format(result) client.send(Badge.new(result).to_s, format: :html) end
Private Instance Methods
client()
click to toggle source
# File lib/simplecov/idobata.rb, line 21 def client IdobataHook::Client.new(@hook_url) end