Update payment.rb

This commit is contained in:
ricky authored and GitHub committed 2016-08-05 21:24:49 -04:00
1 parent 5d4c49c85d
commit 08b365e69e
1 file changed
+13
+13
View File
@@ -23,6 +23,19 @@ class Payment
def initialize
@errors = ActiveModel::Errors.new(self)
end
# The following methods are needed to be minimally implemented
def read_attribute_for_validation(attr)
send(attr)
end
def self.human_attribute_name(attr, options = {})
attr
end
def self.lookup_ancestors
[self]
end
def save
payment = Quickbooks::Model::Payment.new