Module: Fastbill::Automatic::Services::Cancel::ClassMethods
- Defined in:
- lib/fastbill-automatic/services/cancel.rb
Instance Method Summary collapse
Instance Method Details
#cancel(id) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/fastbill-automatic/services/cancel.rb', line 7 def cancel(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}.cancel", attributes) true end |