Class: ANLExpress::ANLExpress

Inherits:
Object
  • Object
show all
Defined in:
lib/anlexpress/carrier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeANLExpress

Returns a new instance of ANLExpress.



11
12
13
14
15
# File 'lib/anlexpress/carrier.rb', line 11

def initialize 
  @domain = 'www.anlexpress.com'
  @path = "/chaxun.php"
  @code = 'ANL'
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/anlexpress/carrier.rb', line 10

def code
  @code
end

#domainObject (readonly)

Returns the value of attribute domain.



10
11
12
# File 'lib/anlexpress/carrier.rb', line 10

def domain
  @domain
end

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/anlexpress/carrier.rb', line 10

def path
  @path
end

Instance Method Details

#create_statues(*track_numbers) ⇒ Object



17
18
19
# File 'lib/anlexpress/carrier.rb', line 17

def create_statues *track_numbers
  parse_status(package_status(track_numbers))
end