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.
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
# File 'lib/models/porcelain.rb', line 477 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.
473 474 475 |
# File 'lib/models/porcelain.rb', line 473 def account @account end |
#meta ⇒ Object
Reserved for future use.
471 472 473 |
# File 'lib/models/porcelain.rb', line 471 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
475 476 477 |
# File 'lib/models/porcelain.rb', line 475 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
493 494 495 496 497 498 499 |
# File 'lib/models/porcelain.rb', line 493 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 |