Class: SDM::AccountGrantCreateResponse
- Inherits:
-
Object
- Object
- SDM::AccountGrantCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGrantCreateResponse reports how the AccountGrants were created in the system.
Instance Attribute Summary collapse
-
#account_grant ⇒ Object
The created AccountGrant.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
constructor
A new instance of AccountGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_grant: nil, meta: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
Returns a new instance of AccountGrantCreateResponse.
1253 1254 1255 1256 1257 1258 1259 1260 1261 |
# File 'lib/models/porcelain.rb', line 1253 def initialize( account_grant: nil, meta: nil, rate_limit: nil ) @account_grant = account_grant == nil ? nil : account_grant @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_grant ⇒ Object
The created AccountGrant.
1247 1248 1249 |
# File 'lib/models/porcelain.rb', line 1247 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
1249 1250 1251 |
# File 'lib/models/porcelain.rb', line 1249 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
1251 1252 1253 |
# File 'lib/models/porcelain.rb', line 1251 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1263 1264 1265 1266 1267 1268 1269 |
# File 'lib/models/porcelain.rb', line 1263 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 |