Sha256: 89f37fde7e1853bffcaf1648e9f37c068933d0f96b053ff64d224f897ae04292

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

module Passport
  module Oauth
    module Restful
      def self.included(base)
        base.extend ClassMethods
        base.send :include, InstanceMethods
      end
      
      module ClassMethods
        
      end
      
      module InstanceMethods
        def get(path, headers = {})
          access_token.get(path, headers)
        end
        
        def post(path, body = "", headers = {})
          access_token.post(path, body, headers)
        end

        def head(path, headers = {})
          access_token.head(path, headers)
        end

        def put(path, body = "", headers = {})
          access_token.put(path, body, headers)
        end

        def delete(path, headers = {})
          access_token.delete(path, headers)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/client/restful.rb