Sha256: beea644203bbf9802bf85a62eb0f105cb7155bfb687451f5b176508031eda01e
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
module Braintree # See http://www.braintreepayments.com/docs/ruby/general/result_objects class SuccessfulResult include BaseModule attr_reader :address, :credit_card, :customer, :merchant_account, :settlement_batch_summary, :subscription, :new_transaction, :transaction def initialize(attributes = {}) # :nodoc: @attrs = attributes.keys attributes.each do |key, value| instance_variable_set("@#{key}", value) end end def inspect # :nodoc: inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end def success? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.31.0 | lib/braintree/successful_result.rb |
braintree-2.30.2 | lib/braintree/successful_result.rb |