static public Method

Base.default_api_method_instance

The Method instance for the default API method, if any

Source Code

# File action_web_service/api.rb, line 139
def default_api_method_instance
  return nil unless name = default_api_method
  instance = read_inheritable_attribute("default_api_method_instance")
  if instance && instance.name == name
    return instance
  end
  instance = Method.new(name, public_api_method_name(name), nil, nil)
  write_inheritable_attribute("default_api_method_instance", instance)
  instance
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.