Class: SDM::AccountUpdateResponse
- Inherits:
-
Object
- Object
- SDM::AccountUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountUpdateResponse returns the fields of a Account after it has been updated by a AccountUpdateRequest.
Instance Attribute Summary collapse
-
#account ⇒ Object
The updated Account.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, account: nil, rate_limit: nil) ⇒ AccountUpdateResponse
constructor
A new instance of AccountUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account: nil, rate_limit: nil) ⇒ AccountUpdateResponse
Returns a new instance of AccountUpdateResponse.
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/models/porcelain.rb', line 483 def initialize( meta:nil \ , account:nil \ , rate_limit:nil \ ) if != nil @meta = end if account != nil @account = account end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account ⇒ Object
The updated Account.
480 481 482 |
# File 'lib/models/porcelain.rb', line 480 def account @account end |
#meta ⇒ Object
Reserved for future use.
478 479 480 |
# File 'lib/models/porcelain.rb', line 478 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
482 483 484 |
# File 'lib/models/porcelain.rb', line 482 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
500 501 502 503 504 505 506 |
# File 'lib/models/porcelain.rb', line 500 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 |