Class: SDM::AccountCreateResponse
- Inherits:
-
Object
- Object
- SDM::AccountCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountCreateResponse reports how the Accounts were created in the system.
Instance Attribute Summary collapse
-
#access_key ⇒ Object
ID part of the API key.
-
#account ⇒ Object
The created Account.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#secret_key ⇒ Object
Secret part of the API key.
-
#token ⇒ Object
The auth token generated for the Account.
Instance Method Summary collapse
-
#initialize(access_key: nil, account: nil, meta: nil, rate_limit: nil, secret_key: nil, token: nil) ⇒ AccountCreateResponse
constructor
A new instance of AccountCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(access_key: nil, account: nil, meta: nil, rate_limit: nil, secret_key: nil, token: nil) ⇒ AccountCreateResponse
Returns a new instance of AccountCreateResponse.
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/models/porcelain.rb', line 1329 def initialize( access_key: nil, account: nil, meta: nil, rate_limit: nil, secret_key: nil, token: nil ) @access_key = access_key == nil ? "" : access_key @account = account == nil ? nil : account @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @secret_key = secret_key == nil ? "" : secret_key @token = token == nil ? "" : token end |
Instance Attribute Details
#access_key ⇒ Object
ID part of the API key.
1316 1317 1318 |
# File 'lib/models/porcelain.rb', line 1316 def access_key @access_key end |
#account ⇒ Object
The created Account.
1318 1319 1320 |
# File 'lib/models/porcelain.rb', line 1318 def account @account end |
#meta ⇒ Object
Reserved for future use.
1320 1321 1322 |
# File 'lib/models/porcelain.rb', line 1320 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
1322 1323 1324 |
# File 'lib/models/porcelain.rb', line 1322 def rate_limit @rate_limit end |
#secret_key ⇒ Object
Secret part of the API key.
1324 1325 1326 |
# File 'lib/models/porcelain.rb', line 1324 def secret_key @secret_key end |
#token ⇒ Object
The auth token generated for the Account. The Account will use this token to authenticate with the strongDM API.
1327 1328 1329 |
# File 'lib/models/porcelain.rb', line 1327 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1345 1346 1347 1348 1349 1350 1351 |
# File 'lib/models/porcelain.rb', line 1345 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |