Setup is simpler and can be done by hand(no make needed) + users can monky-patch Base to add additional methods
class SK::SDK::Base < ActiveResource::Base
extend SK::SDK::ClassMethods
include SK::SDK::InstanceMethods
self.format = :json
end
# only needed once
SK::SDK::Base.set_connection(
...
)
# simple object creating
class Client < SK::SDK::Base;end
# create objects in King namespace
%w[Client Invoice Product LineItem].each do |model|
eval "class King::#{model} < SK::SDK::Base;end"
end
Setup is simpler and can be done by hand(no make needed) + users can monky-patch Base to add additional methods