Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/braintree_rails/module_ext.rb

Instance Method Summary collapse

Instance Method Details

#not_supported_apis(*methods) ⇒ Object



2
3
4
5
6
# File 'lib/braintree_rails/module_ext.rb', line 2

def not_supported_apis(*methods)
  methods.each do |method|
    define_method(method) {|*args| raise BraintreeRails::NotSupportedApiException}
  end
end