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.
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/models/porcelain.rb', line 503 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.
499 500 501 |
# File 'lib/models/porcelain.rb', line 499 def account @account end |
#meta ⇒ Object
Reserved for future use.
497 498 499 |
# File 'lib/models/porcelain.rb', line 497 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
501 502 503 |
# File 'lib/models/porcelain.rb', line 501 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
519 520 521 522 523 524 525 |
# File 'lib/models/porcelain.rb', line 519 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 |