module GMO::PG::Dispatcher::Shorthands

Private Class Methods

register_shorthand(endpoint, name) click to toggle source
# File lib/gmo-pg/dispatcher/shorthands.rb, line 7
def self.register_shorthand(endpoint, name)
  define_method :"dispatch_#{name}" do |attributes|
    dispatch(endpoint::Request.new(attributes))
  end
end