Class: TicketNetwork::Catalog::Category
- Defined in:
- lib/ticket_network/catalog/category.rb
Defined Under Namespace
Classes: Parser
Class Method Summary collapse
Methods inherited from Base
action, defaults, get, post, service
Class Method Details
.all(parameters = {}) ⇒ Object
23 24 25 |
# File 'lib/ticket_network/catalog/category.rb', line 23 def all(parameters={}) fetch(parameters).categories end |
.sanitize_name(name) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/ticket_network/catalog/category.rb', line 27 def sanitize_name(name) name = name.titleize name.strip! name.gsub!(/Div I A/, 'Div I-A') name.gsub!(/Div I-Aa/, 'Div I-AA') name.gsub!(/ And /, ' and ') name end |