Class: Braintree::Transaction::PackageDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::PackageDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/package_details.rb
Instance Attribute Summary collapse
-
#carrier ⇒ Object
readonly
Returns the value of attribute carrier.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#paypal_tracker_id ⇒ Object
readonly
Returns the value of attribute paypal_tracker_id.
-
#paypal_tracking_id ⇒ Object
readonly
NEXT_MAJOR_VERSION Remove this method use paypal_tracker_id going forward.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ PackageDetails
constructor
A new instance of PackageDetails.
Methods included from BaseModule
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
#carrier ⇒ Object (readonly)
Returns the value of attribute carrier.
6 7 8 |
# File 'lib/braintree/transaction/package_details.rb', line 6 def carrier @carrier end |
#id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_number ⇒ Object (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 |