Sha256: 1c27979ee115bfb500435cf9773da2cb12db2ff58d6b4505441c0cfe1b5de80c
Contents?: true
Size: 718 Bytes
Versions: 42
Compression:
Stored size: 718 Bytes
Contents
module ActiveShipping #:nodoc: class ExternalReturnLabelResponse < Response attr_reader :carrier # symbol attr_reader :carrier_name # string attr_reader :tracking_number # string attr_reader :return_label # string attr_reader :postal_routing # string def initialize(success, message, params = {}, options = {}) @carrier = options[:carrier].parameterize.to_sym @carrier_name = options[:carrier] @return_label = options[:return_label] @tracking_number = options[:tracking_number] @postal_routing = options[:postal_routing] super end def has_exception? @status == :exception end alias_method(:exception?, :has_exception?) end end
Version data entries
42 entries across 42 versions & 1 rubygems