Sha256: b2e47f125ecb41f6f89dba3ba1ba9a754eca3e2745b115f4d872209bdd7a6221

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

require 'typhoeus'
require 'ty/version'

module Ty
  class << self
    include Typhoeus
    
    %w(get post put delete head).each do |method|
      define_method(method.to_sym) do |url, opts = {}|
        Request.send(method, url, opts)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ty-0.1.0 lib/ty.rb