module Fastbill::Automatic::Services::Update::ClassMethods
Public Instance Methods
update_attributes(id, attributes)
click to toggle source
# File lib/fastbill-automatic/services/update.rb, line 7 def update_attributes(id, attributes) id_attribute = "#{self.class.name.split("::").last.downcase}_id".to_sym attributes[id_attribute] = id response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.update", attributes) true end