Sha256: cd05b064c92503dcc433b1cdafa20164bc0005d4d1ae75c159764345f059b56d

Contents?: true

Size: 548 Bytes

Versions: 21

Compression:

Stored size: 548 Bytes

Contents

module Braintree
  class Transaction
    class SubscriptionDetails # :nodoc:
      include BaseModule

      attr_reader :billing_period_end_date
      attr_reader :billing_period_start_date

      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
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/transaction/subscription_details.rb
braintree-4.14.0 lib/braintree/transaction/subscription_details.rb
braintree-4.13.0 lib/braintree/transaction/subscription_details.rb
braintree-4.12.0 lib/braintree/transaction/subscription_details.rb
braintree-4.11.0 lib/braintree/transaction/subscription_details.rb
braintree-4.10.0 lib/braintree/transaction/subscription_details.rb
braintree-4.9.0 lib/braintree/transaction/subscription_details.rb
braintree-4.8.0 lib/braintree/transaction/subscription_details.rb
braintree-4.7.0 lib/braintree/transaction/subscription_details.rb
braintree-4.6.0 lib/braintree/transaction/subscription_details.rb
braintree-4.5.0 lib/braintree/transaction/subscription_details.rb
braintree-4.4.0 lib/braintree/transaction/subscription_details.rb
braintree-4.3.0 lib/braintree/transaction/subscription_details.rb
braintree-4.2.0 lib/braintree/transaction/subscription_details.rb
braintree-4.1.0 lib/braintree/transaction/subscription_details.rb
braintree-4.0.0 lib/braintree/transaction/subscription_details.rb
braintree-3.4.0 lib/braintree/transaction/subscription_details.rb
braintree-3.3.0 lib/braintree/transaction/subscription_details.rb
braintree-3.2.0 lib/braintree/transaction/subscription_details.rb
braintree-3.1.0 lib/braintree/transaction/subscription_details.rb