Module: Express::Company

Included in:
Express
Defined in:
lib/express/company.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

MATCHES =
{
  /顺丰/ => 'shunfeng',
  /ems/i => 'ems',
  /申通/ => 'shentong',
  /圆通/ => 'yuantong',
  /中通/ => 'zhongtong',
  /宅急送/ => 'zhaijisong',
  /韵达/ => 'yunda',
  /天天/ => 'tiantian',
  /联邦|Fedex/i => 'fedexcn',
  /汇通/ => 'huitong'
}

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
# File 'lib/express/company.rb', line 17

def self.included(base)
  base.extend(ClassMethods)
end