Module: BlizzardApi::Wow::Slug
- Included in:
- CharacterProfile, Guild
- Defined in:
- lib/blizzard_api_rb/wow/slug.rb
Overview
Support for slugs
Instance Method Summary collapse
Instance Method Details
#string_to_slug(string) ⇒ Object
7 8 9 |
# File 'lib/blizzard_api_rb/wow/slug.rb', line 7 def string_to_slug(string) CGI.escape(string.downcase.tr(' ', '-')) end |