lib/mingle4r/common_class_methods.rb
def create_resource_class
      raise "Please set the site for #{self} class." unless(self.site)
      created_class = Class.new(MingleResource)
      created_class.format = :xml
      setup_class(created_class)
      created_class
    end
def create_resource_class
      raise "Please set the site for #{self} class." unless(self.site)
      created_class = Class.new(MingleResource)
      created_class.format = :xml
      setup_class(created_class)
      created_class
    end
def create_resource_class raise "Please set the site for #{self} class." unless ( self . site ) created_class = Class . new ( MingleResource ) created_class . format = :xml setup_class ( created_class ) created_class end
creates an active resource class dynamically. All the attributes are set automatically. Avoid calling
 this method directly
creates an active resource class dynamically . All the attributes are set automatically . Avoid calling this method directly