Sha256: 5504647a443dd82b5f4b62897d2420ba08d5540ab5d1efab624c52a397254083

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

require 'httparty'

module Tinder
  class Connection
    def initialize
      class << self
        include HTTParty

        headers 'Content-Type' => 'application/json'
      end
    end

    def metaclass
      class << self; self; end
    end

    def method_missing(*args, &block)
      metaclass.send(*args, &block)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
matsimitsu-tinder-1.3.1 lib/tinder/connection.rb
tinder-1.3.1 lib/tinder/connection.rb
tinder-1.3.0 lib/tinder/connection.rb