class RestfulResource::OpenObject

Public Class Methods

new(attributes = {}, _hack_for_activeresource = false) click to toggle source
# File lib/restful_resource/open_object.rb, line 3
def initialize(attributes = {}, _hack_for_activeresource = false)
  @inner_object = StrictOpenStruct.new(attributes)
end

Public Instance Methods

==(other) click to toggle source
# File lib/restful_resource/open_object.rb, line 23
def ==(other)
  @inner_object == other.instance_variable_get(:@inner_object)
end
as_json(options = nil) click to toggle source
# File lib/restful_resource/open_object.rb, line 19
def as_json(options = nil)
  @inner_object.send(:table).as_json(options)
end
eql?(other) click to toggle source
# File lib/restful_resource/open_object.rb, line 27
def eql?(other)
  @inner_object.eql?(other.instance_variable_get(:@inner_object))
end
equal?(other) click to toggle source
# File lib/restful_resource/open_object.rb, line 31
def equal?(other)
  @inner_object.equal?(other.instance_variable_get(:@inner_object))
end
hash() click to toggle source
# File lib/restful_resource/open_object.rb, line 35
def hash
  @inner_object.hash
end
method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/restful_resource/open_object.rb, line 7
def method_missing(method, *args, &block)
  if @inner_object.respond_to?(method)
    @inner_object.send(method, *args, &block)
  else
    super(method)
  end
end
respond_to?(method, include_private = false) click to toggle source
Calls superclass method
# File lib/restful_resource/open_object.rb, line 15
def respond_to?(method, include_private = false)
  super || @inner_object.respond_to?(method, include_private)
end