Methods
(inner) create(apiKey, hotelId) → {object}
Creates a new Impala instance.
Injects an API service into the Impala object.
If a hotel ID is passed uses the Impala object to get a hotel object and
return it, otherwise returns the Impala object itself.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string | API key to access Impala |
hotelId |
string | Optional hotel ID |
Returns:
a hotel or impala instance
- Type
- object