class ApiResource::Mocks::Interface

A simple interface class to change the new connection to look like the old activeresource connection

Public Class Methods

new(path) click to toggle source
# File lib/api_resource/mocks.rb, line 14
def initialize(path)
  @path = path
end

Public Instance Methods

delete(*args, &block) click to toggle source
# File lib/api_resource/mocks.rb, line 27
def delete(*args, &block)
  Connection.send(:delete, @path, *args, &block)
end
get(*args, &block) click to toggle source
# File lib/api_resource/mocks.rb, line 18
def get(*args, &block)
  Connection.send(:get, @path, *args, &block)
end
head(*args, &block) click to toggle source
# File lib/api_resource/mocks.rb, line 30
def head(*args, &block)
  Connection.send(:head, @path, *args, &block)
end
post(*args, &block) click to toggle source
# File lib/api_resource/mocks.rb, line 21
def post(*args, &block)
  Connection.send(:post, @path, *args, &block)
end
put(*args, &block) click to toggle source
# File lib/api_resource/mocks.rb, line 24
def put(*args, &block)
  Connection.send(:put, @path, *args, &block)
end