Sha256: 0814a569ed6530ab9caac067d473fd045ca35794fa4103a67652e6ba8b42604c

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

module Braintree
  class Transaction
    class SubscriptionDetails
      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

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/transaction/subscription_details.rb
braintree-4.22.0 lib/braintree/transaction/subscription_details.rb
braintree-4.21.0 lib/braintree/transaction/subscription_details.rb
braintree-4.20.0 lib/braintree/transaction/subscription_details.rb
braintree-4.19.0 lib/braintree/transaction/subscription_details.rb
braintree-4.18.0 lib/braintree/transaction/subscription_details.rb
braintree-4.17.0 lib/braintree/transaction/subscription_details.rb
braintree-4.16.0 lib/braintree/transaction/subscription_details.rb