jsmestad / jsonapi-consumer

Client framework for consuming JSONAPI services in Ruby
https://github.com/jsmestad/jsonapi-consumer
Apache License 2.0
94 stars 18 forks source link

Cannot set `host` value on a parent class #4

Closed jsmestad closed 10 years ago

jsmestad commented 10 years ago

It appears something like this is not supported yet:

class Base
  include JSONAPI::Consumer::Resource
  self.host = 'http://foobar/api/'
end

class User < Base

end

It errors with NotImplementedError: host was not set