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(meta: nil, account_grant: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
constructor
A new instance of AccountGrantCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account_grant: nil, rate_limit: nil) ⇒ AccountGrantCreateResponse
Returns a new instance of AccountGrantCreateResponse.
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/models/porcelain.rb', line 257 def initialize( meta: nil, account_grant: nil, rate_limit: nil ) if != nil @meta = end if account_grant != nil @account_grant = account_grant end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_grant ⇒ Object
The created AccountGrant.
253 254 255 |
# File 'lib/models/porcelain.rb', line 253 def account_grant @account_grant end |
#meta ⇒ Object
Reserved for future use.
251 252 253 |
# File 'lib/models/porcelain.rb', line 251 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
255 256 257 |
# File 'lib/models/porcelain.rb', line 255 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
273 274 275 276 277 278 279 |
# File 'lib/models/porcelain.rb', line 273 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 |