Class: InOrOut::ShortcodeConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/in_or_out/models/shortcode_converter.rb

Class Method Summary collapse

Class Method Details

.convert(shortcode) ⇒ Object



7
8
9
# File 'lib/in_or_out/models/shortcode_converter.rb', line 7

def self.convert(shortcode)
  shortcodes[shortcode]
end

.find_shortcode(team_name) ⇒ Object



11
12
13
# File 'lib/in_or_out/models/shortcode_converter.rb', line 11

def self.find_shortcode(team_name)
  shortcodes.key(team_name)
end