Class: Braintree::Transaction::DisbursementDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::DisbursementDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/disbursement_details.rb
Instance Attribute Summary collapse
-
#disbursement_date ⇒ Object
readonly
Returns the value of attribute disbursement_date.
-
#settlement_amount ⇒ Object
readonly
Returns the value of attribute settlement_amount.
-
#settlement_currency_exchange_rate ⇒ Object
readonly
Returns the value of attribute settlement_currency_exchange_rate.
-
#settlement_currency_iso_code ⇒ Object
readonly
Returns the value of attribute settlement_currency_iso_code.
-
#success ⇒ Object
(also: #success?)
readonly
Returns the value of attribute success.
Instance Method Summary collapse
- #funds_held? ⇒ Boolean
-
#initialize(attributes) ⇒ DisbursementDetails
constructor
A new instance of DisbursementDetails.
- #valid? ⇒ Boolean
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) ⇒ DisbursementDetails
Returns a new instance of DisbursementDetails.
14 15 16 17 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 14 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? @disbursement_date = Date.parse(disbursement_date) unless disbursement_date.nil? end |
Instance Attribute Details
#disbursement_date ⇒ Object (readonly)
Returns the value of attribute disbursement_date.
6 7 8 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 6 def disbursement_date @disbursement_date end |
#settlement_amount ⇒ Object (readonly)
Returns the value of attribute settlement_amount.
7 8 9 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 7 def settlement_amount @settlement_amount end |
#settlement_currency_exchange_rate ⇒ Object (readonly)
Returns the value of attribute settlement_currency_exchange_rate.
8 9 10 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 8 def settlement_currency_exchange_rate @settlement_currency_exchange_rate end |
#settlement_currency_iso_code ⇒ Object (readonly)
Returns the value of attribute settlement_currency_iso_code.
9 10 11 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 9 def settlement_currency_iso_code @settlement_currency_iso_code end |
#success ⇒ Object (readonly) Also known as: success?
Returns the value of attribute success.
10 11 12 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 10 def success @success end |
Instance Method Details
#funds_held? ⇒ Boolean
19 20 21 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 19 def funds_held? @funds_held end |
#valid? ⇒ Boolean
23 24 25 |
# File 'lib/braintree/transaction/disbursement_details.rb', line 23 def valid? !disbursement_date.nil? end |