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.
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/models/porcelain.rb', line 1116 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.
1103 1104 1105 |
# File 'lib/models/porcelain.rb', line 1103 def access_key @access_key end |
#account ⇒ Object
The created Account.
1105 1106 1107 |
# File 'lib/models/porcelain.rb', line 1105 def account @account end |
#meta ⇒ Object
Reserved for future use.
1107 1108 1109 |
# File 'lib/models/porcelain.rb', line 1107 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
1109 1110 1111 |
# File 'lib/models/porcelain.rb', line 1109 def rate_limit @rate_limit end |
#secret_key ⇒ Object
Secret part of the API key.
1111 1112 1113 |
# File 'lib/models/porcelain.rb', line 1111 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.
1114 1115 1116 |
# File 'lib/models/porcelain.rb', line 1114 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1132 1133 1134 1135 1136 1137 1138 |
# File 'lib/models/porcelain.rb', line 1132 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 |