class Badgify

Constants

CONFIG
VERSION

Public Class Methods

new(key) click to toggle source
# File lib/badgify.rb, line 8
def initialize(key)
  @key = key
end

Public Instance Methods

badge() click to toggle source
# File lib/badgify.rb, line 12
def badge
  min_key = CONFIG.keys.detect {|x| x.include?(@key)}
  CONFIG[min_key].to_s
end