Class: ANLExpress::ANLExpress
- Inherits:
-
Object
- Object
- ANLExpress::ANLExpress
- Defined in:
- lib/anlexpress/carrier.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #create_statues(*track_numbers) ⇒ Object
-
#initialize ⇒ ANLExpress
constructor
A new instance of ANLExpress.
Constructor Details
#initialize ⇒ ANLExpress
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/anlexpress/carrier.rb', line 10 def code @code end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
10 11 12 |
# File 'lib/anlexpress/carrier.rb', line 10 def domain @domain end |
#path ⇒ Object (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 |