Class: Braintree::Subscription::StatusDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/subscription/status_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) ⇒ 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

#balanceObject (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_codeObject (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_idObject (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

#priceObject (readonly)

Returns the value of attribute price.



7
8
9
# File 'lib/braintree/subscription/status_details.rb', line 7

def price
  @price
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/braintree/subscription/status_details.rb', line 8

def status
  @status
end

#subscription_sourceObject (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

#timestampObject (readonly)

Returns the value of attribute timestamp.



10
11
12
# File 'lib/braintree/subscription/status_details.rb', line 10

def timestamp
  @timestamp
end

#userObject (readonly)

Returns the value of attribute user.



11
12
13
# File 'lib/braintree/subscription/status_details.rb', line 11

def user
  @user
end