For a goo object, we should provide an option to retrieve the class for a given attribute when that attribute is associated to another object via the :instance_of option in the attribute DSL.
For example:
class Review < Goo::Base::Resource
model :review
attribute :creator, :instance_of => { :with => :user }, :cardinality => { :max => 1, :min => 1 }
end
> cls = Review.range_class(:creator)
> cls == User
=> true
For a goo object, we should provide an option to retrieve the class for a given attribute when that attribute is associated to another object via the :instance_of option in the attribute DSL.
For example: