Closed nglx closed 9 years ago
Since the api allows to chain commands like:
client.panels.find("panelIdHere").members.create(panel_member)
we have to inject the connection to the chained objects.
Let's change the api so the client is not instantiated but configured:
QualtricsAPI.configure do |c| c.api_token = 'xxx' end QualtricsAPI.panels
Leaving the current implementation with client new would be inconsistent in that case (suggesting that we can have multiple clients):
client = QualtricsAPI.new(:api_token => 'xxx')
This will simplify the implementation. Makes sense?
yes...please do :)
it's implemented in #11
Since the api allows to chain commands like:
we have to inject the connection to the chained objects.
Let's change the api so the client is not instantiated but configured:
Leaving the current implementation with client new would be inconsistent in that case (suggesting that we can have multiple clients):
This will simplify the implementation. Makes sense?