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