class AfterShip::Courier

Wrapper object for AfterShip courier: www.aftership.com/docs/api/4/couriers/get-couriers

Attributes

name[RW]

Name of courier.

@return [String]

other_name[RW]

Other name of courier.

@return [String]

phone[RW]

Contact phone number of courier.

@return [String]

required_fields[RW]

The extra fields need for tracking, such as `tracking_account_number`, `tracking_postal_code`, `tracking_ship_date`.

@return [Array]

slug[RW]

Unique code of courier.

@return [String]

web_url[RW]

Website link of courier.

@return [String]

Public Class Methods

new(data) click to toggle source

Better interface for a courier.

@param data [Hash] tracking hash

# File lib/after_ship/courier.rb, line 41
def initialize(data)
  load_attributes(data)
end