Class: Braintree::Subscription::StatusDetails
- Inherits:
-
Object
- Object
- Braintree::Subscription::StatusDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/subscription/status_details.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#currency_iso_code ⇒ Object
readonly
Returns the value of attribute currency_iso_code.
-
#plan_id ⇒ Object
readonly
Returns the value of attribute plan_id.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#subscription_source ⇒ Object
readonly
Returns the value of attribute subscription_source.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ StatusDetails
constructor
A new instance of StatusDetails.
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) ⇒ StatusDetails
Returns a new instance of StatusDetails.
15 16 17 |
# File 'lib/braintree/subscription/status_details.rb', line 15 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
6 7 8 |
# File 'lib/braintree/subscription/status_details.rb', line 6 def balance @balance end |
#currency_iso_code ⇒ Object (readonly)
Returns the value of attribute currency_iso_code.
12 13 14 |
# File 'lib/braintree/subscription/status_details.rb', line 12 def currency_iso_code @currency_iso_code end |
#plan_id ⇒ Object (readonly)
Returns the value of attribute plan_id.
13 14 15 |
# File 'lib/braintree/subscription/status_details.rb', line 13 def plan_id @plan_id end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
7 8 9 |
# File 'lib/braintree/subscription/status_details.rb', line 7 def price @price end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/braintree/subscription/status_details.rb', line 8 def status @status end |
#subscription_source ⇒ Object (readonly)
Returns the value of attribute subscription_source.
9 10 11 |
# File 'lib/braintree/subscription/status_details.rb', line 9 def subscription_source @subscription_source end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
10 11 12 |
# File 'lib/braintree/subscription/status_details.rb', line 10 def @timestamp end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
11 12 13 |
# File 'lib/braintree/subscription/status_details.rb', line 11 def user @user end |