I think you need to override def initialize and check that the target object is a EntryPoints class to prevent this 

```ruby 
def initialize(...)
  raise ... unless target.is_a?(EntryPoints)
  super
end
```

or something like that since this is not written resource specific. It assumes a `resources` property on the object to work. Alternately, you can raise an error if the object does not respond_to?(resources). This might allow a little more flexibility.