class ActiveRestClient::RequestDelegator

Public Class Methods

new(obj) click to toggle source
Calls superclass method
# File lib/active_rest_client/request_delegator.rb, line 3
def initialize(obj)
  super
  @delegate_obj = obj
end

Public Instance Methods

__getobj__() click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 8
def __getobj__
  @delegate_obj
end
__setobj__(obj) click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 12
def __setobj__(obj)
  @delegate_obj = obj
end
_delegate?() click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 40
def _delegate?
  return true
end
class() click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 16
def class
  @delegate_obj.class
end
instance_of?(obj) click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 36
def instance_of?(obj)
  @delegate_obj.instance_of?(obj)
end
is_a?(obj) click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 32
def is_a?(obj)
  @delegate_obj.is_a?(obj)
end
kind_of?(obj) click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 28
def kind_of?(obj)
  @delegate_obj.kind_of?(obj)
end
method_missing(name, *args, &block) click to toggle source
# File lib/active_rest_client/request_delegator.rb, line 20
def method_missing(name, *args, &block)
  # Handles issue with private method 'test' on base Ruby Object
  return @delegate_obj.test if name.to_sym == :test

  # Forward request to delegate
  @delegate_obj.send(name, *args, &block)
end