Skip to content

Commit cffe48e

Browse files
committed
Cube constructor changed
Signed-off-by: Vishal Rana <[email protected]>
1 parent 8b4f988 commit cffe48e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ func NewClient(accountID, apiKey string) *Client {
4242
}
4343

4444
// Cube returns the cube service.
45-
func (c *Client) Cube(accountID, apiKey string) (cube *Cube) {
45+
func (c *Client) Cube() (cube *Cube) {
4646
cube = &Cube{
4747
sling: c.sling.Path("/cube"),
4848
logger: c.logger,
49-
AccountID: accountID,
50-
APIKey: apiKey,
49+
AccountID: c.accountID,
50+
APIKey: c.apiKey,
5151
BatchSize: 60,
5252
DispatchInterval: 60,
5353
}

0 commit comments

Comments
 (0)