Sha256: 1330765d893e735c63f4c4319f76c9e2edf23fb46da5ca2a13ab10e56bb88272
Contents?: true
Size: 551 Bytes
Versions: 9
Compression:
Stored size: 551 Bytes
Contents
module BraintreeRails class Modification include Model singleton_class.not_supported_apis(:delete) not_supported_apis(:create, :create!, :update, :update!, :destroy) define_attributes( :readonly => [ :amount, :created_at, :description, :id, :kind, :merchant_id, :name, :never_expires, :number_of_billing_cycles, :quantity, :updated_at ] ) def self.all braintree_model_class.all.map{ |modification| new(modification) } end def never_expires? never_expires end end end
Version data entries
9 entries across 9 versions & 1 rubygems