Class: Braintree::Transaction::PackageDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/transaction/package_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ PackageDetails

Returns a new instance of PackageDetails.



14
15
16
# File 'lib/braintree/transaction/package_details.rb', line 14

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Instance Attribute Details

#carrierObject (readonly)

Returns the value of attribute carrier.



6
7
8
# File 'lib/braintree/transaction/package_details.rb', line 6

def carrier
  @carrier
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/braintree/transaction/package_details.rb', line 7

def id
  @id
end

#paypal_tracker_idObject (readonly)

Returns the value of attribute paypal_tracker_id.



11
12
13
# File 'lib/braintree/transaction/package_details.rb', line 11

def paypal_tracker_id
  @paypal_tracker_id
end

#paypal_tracking_idObject (readonly)

NEXT_MAJOR_VERSION Remove this method use paypal_tracker_id going forward



10
11
12
# File 'lib/braintree/transaction/package_details.rb', line 10

def paypal_tracking_id
  @paypal_tracking_id
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number.



12
13
14
# File 'lib/braintree/transaction/package_details.rb', line 12

def tracking_number
  @tracking_number
end