/
Setting up help for an object with methods
Setting up help for an object with methods
Sometimes you might want help for methods on an object.
For instance our database library returns a database connection object that has methods with help. Iguana’s help system makes it possible to register help for these methods also.
Another example would be say you were writing a library which acts as an adapter like a “Salesforce” adapter - you authenticate and get a salesforce object that has methods on it to do things with the sales force API. Here’s some imaginary code:
local S = SALESconnect{user='fred', password=Secret}
local List = S:listCustomers{filter="ABC*"}
S:addCustomer{name="Acme", description="A generic company"}
This outlines the process: