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(account: nil, meta: nil, rate_limit: nil, token: nil) ⇒ AccountCreateResponse
constructor
A new instance of AccountCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account: nil, meta: nil, rate_limit: nil, token: nil) ⇒ AccountCreateResponse
Returns a new instance of AccountCreateResponse.
801 802 803 804 805 806 807 808 809 810 811 |
# File 'lib/models/porcelain.rb', line 801 def initialize( account: nil, meta: nil, rate_limit: nil, token: nil ) @account = account == nil ? nil : account @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @token = token == nil ? "" : token end |
Instance Attribute Details
#account ⇒ Object
The created Account.
792 793 794 |
# File 'lib/models/porcelain.rb', line 792 def account @account end |
#meta ⇒ Object
Reserved for future use.
794 795 796 |
# File 'lib/models/porcelain.rb', line 794 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
796 797 798 |
# File 'lib/models/porcelain.rb', line 796 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.
799 800 801 |
# File 'lib/models/porcelain.rb', line 799 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
813 814 815 816 817 818 819 |
# File 'lib/models/porcelain.rb', line 813 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 |