Class: Saber::Tracker::Gazelle
- Defined in:
- lib/saber/tracker/gazelle.rb
Constant Summary collapse
- TAG_MAP =
{ "nonfiction" => "non.fiction" }
Constants inherited from Base
Base::BASE_URL, Base::DELEGATE_METHODS, Base::LOGIN_CHECK_PATH, Base::POPULATE_TYPES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
can_populate?, inherited, #initialize, #login, #populate, #upload
Constructor Details
This class inherits a constructor from Saber::Tracker::Base
Instance Method Details
#convert_tags(*tags) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/saber/tracker/gazelle.rb', line 8 def (*) .map {|tag| tag = tag.downcase.gsub(/&/, "and").gsub(/ +/, ".").gsub(/'/, "") self.class::TAG_MAP[tag] || tag } end |