Class: Saber::Tracker::Gazelle

Inherits:
Base
  • Object
show all
Defined in:
lib/saber/tracker/gazelle.rb

Direct Known Subclasses

BB, STP, What

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

#agent, #name, #options

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 convert_tags(*tags)
  tags.map {|tag|
    tag = tag.downcase.gsub(/&/, "and").gsub(/ +/, ".").gsub(/'/, "")
    self.class::TAG_MAP[tag] || tag
  }
end