Sha256: 043dcc0a9e22109cac8b8fccc7105818f1cd8b00be7b958938eb801736ac1531
Contents?: true
Size: 690 Bytes
Versions: 8
Compression:
Stored size: 690 Bytes
Contents
module Braintree class CoinbaseAccount include BaseModule # :nodoc: attr_reader :token, :user_id, :user_email, :user_name, :subscriptions, :created_at, :updated_at, :default def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end # Returns true if this coinbase account is the customer's default payment method. def default? @default end end end
Version data entries
8 entries across 8 versions & 1 rubygems