Closed florrain closed 10 years ago
Would you check the types of object passed to each function ?
For instance take retrieve_profile_extension_records(interact_object, query_column, field_list, ids_to_retrieve)
.
At the beginning of the function there would a check of all params : interact_object.is_a? InteractObject and query_column.is_a? .....
I know it's generating a large amount of code if we do it so for all functions. Also Ruby has not been thought for type checking. My question is : should we check params of all functions and handle/raise exceptions if so. Related to this I coded a raised exception in FieldType and QueryColumn API objects if the constructor param is not an accepted type/column.
Now closing, everything's been pushed to master.
Dear team,
Here are a few changes made to the repo to welcome tables and profile extension tables. Because I needed new features, I changed some little things. Below you'll find a summary of my work.
API
Client
:result
.Examples of the hash returned :
Tests
spec/fixtures/vcr_cassettes
Other
i18n
gem which is a copy of Rails one. The language is english by default and messages are in/responsys/i18n/en.yml
Notes
Thanks for your comments !