Sha256: b9294d2a0c17be45072f6eea24c2b66d89cd5f38811970cf0ff8e2d8876a8cfb
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
require 'hipbot/helpers/http' module Hipbot module Helpers [:get, :post, :put, :delete].each do |method| define_method method do |url, query = {}, &block| Http::Request.new(url, query, method).call(&block) end module_function method end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hipbot-1.0.4 | lib/hipbot/helpers.rb |