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
-
#account ⇒ Object
The created Account.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#token ⇒ Object
The auth token generated for the Account.
Instance Method Summary collapse
-
#initialize(meta: nil, account: nil, token: nil, rate_limit: nil) ⇒ AccountCreateResponse
constructor
A new instance of AccountCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account: nil, token: nil, rate_limit: nil) ⇒ AccountCreateResponse
Returns a new instance of AccountCreateResponse.
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
# File 'lib/models/porcelain.rb', line 411 def initialize( meta:nil \ , account:nil \ , token:nil \ , rate_limit:nil \ ) if != nil @meta = end if account != nil @account = account end if token != nil @token = token end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account ⇒ Object
The created Account.
405 406 407 |
# File 'lib/models/porcelain.rb', line 405 def account @account end |
#meta ⇒ Object
Reserved for future use.
403 404 405 |
# File 'lib/models/porcelain.rb', line 403 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
410 411 412 |
# File 'lib/models/porcelain.rb', line 410 def rate_limit @rate_limit end |
#token ⇒ Object
The auth token generated for the Account. The Account will use this token to authenticate with the strongDM API.
408 409 410 |
# File 'lib/models/porcelain.rb', line 408 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
433 434 435 436 437 438 439 |
# File 'lib/models/porcelain.rb', line 433 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 |