class RestModel class Relation < Association autoload :Response, "rest_model/key/relation/response" include Response def initialize(name, options = {}) super @has = options.fetch(:has, false) end def has? @has end def belongs? !has? end def from_source(value, resource = nil) nil end def relation? true end alias :parse :from_source end end