Class: SDM::AccountCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountCreateResponse reports how the Accounts were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, account: nil, token: nil, rate_limit: nil) ⇒ AccountCreateResponse

Returns a new instance of AccountCreateResponse.



313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
# File 'lib/models/porcelain.rb', line 313

def initialize(
  meta:nil \
,
  account:nil \
,
  token:nil \
,
  rate_limit:nil \
)
  if meta != nil
    @meta = meta
  end
  if  != nil
    @account = 
  end
  if token != nil
    @token = token
  end
  if rate_limit != nil
    @rate_limit = rate_limit
  end
end

Instance Attribute Details

#accountObject

The created Account.



307
308
309
# File 'lib/models/porcelain.rb', line 307

def 
  @account
end

#metaObject

Reserved for future use.



305
306
307
# File 'lib/models/porcelain.rb', line 305

def meta
  @meta
end

#rate_limitObject

Rate limit information.



312
313
314
# File 'lib/models/porcelain.rb', line 312

def rate_limit
  @rate_limit
end

#tokenObject

The auth token generated for the Account. The Account will use this token to authenticate with the strongDM API.



310
311
312
# File 'lib/models/porcelain.rb', line 310

def token
  @token
end