class ShieldSystem

Public Class Methods

new(output_path) click to toggle source
# File src/shield_system.rb, line 8
def initialize(output_path)
  @output_path = output_path
end

Public Instance Methods

github_shield(shield_name, key_text, status_text, key_colour, status_colour, key_text_colour, status_text_colour, background_colour=TRANSPARENT_BACKGROUND, custom_font=FONT_EAGLE, height=18, font_size=11, font_family='arial', buffer=5) click to toggle source
# File src/shield_system.rb, line 12
def github_shield(shield_name, key_text, status_text, key_colour, status_colour, key_text_colour, status_text_colour, background_colour=TRANSPARENT_BACKGROUND, custom_font=FONT_EAGLE, height=18, font_size=11, font_family='arial', buffer=5)
  GithubShield.new(shield_name, key_text, status_text, key_colour, status_colour, key_text_colour, status_text_colour, background_colour, @output_path, custom_font, height, font_size, font_family, buffer).generate
end
label(label_name, label_text, label_colour, label_text_colour, background_colour=TRANSPARENT_BACKGROUND, custom_font=FONT_EAGLE, height=18, font_size=11, font_family='arial', buffer=5) click to toggle source
# File src/shield_system.rb, line 16
def label(label_name, label_text, label_colour, label_text_colour, background_colour=TRANSPARENT_BACKGROUND, custom_font=FONT_EAGLE, height=18, font_size=11, font_family='arial', buffer=5)
  Label.new(label_name, label_text, label_colour, label_text_colour, background_colour, @output_path, custom_font, height, font_size, font_family, buffer).generate
end
sparkline_shield(shield_name, chart_type, data, options={}) click to toggle source
# File src/shield_system.rb, line 20
def sparkline_shield(shield_name, chart_type, data, options={})
  SparklineShield.new(shield_name, chart_type, data, options, @output_path).generate
end