Class: Braintree::Transaction::SubscriptionDetails

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

Returns a new instance of SubscriptionDetails.



9
10
11
12
13
# File 'lib/braintree/transaction/subscription_details.rb', line 9

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
  @billing_period_start_date = Date.parse(billing_period_start_date) unless billing_period_start_date.nil?
  @billing_period_end_date = Date.parse(billing_period_end_date) unless billing_period_end_date.nil?
end

Instance Attribute Details

#billing_period_end_dateObject (readonly)

Returns the value of attribute billing_period_end_date.



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

def billing_period_end_date
  @billing_period_end_date
end

#billing_period_start_dateObject (readonly)

Returns the value of attribute billing_period_start_date.



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

def billing_period_start_date
  @billing_period_start_date
end