Class: SDM::AccountGetResponse
- Inherits:
-
Object
- Object
- SDM::AccountGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGetResponse returns a requested Account.
Instance Attribute Summary collapse
-
#account ⇒ Object
The requested 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) ⇒ AccountGetResponse
constructor
A new instance of AccountGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account: nil, rate_limit: nil) ⇒ AccountGetResponse
Returns a new instance of AccountGetResponse.
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/models/porcelain.rb', line 465 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 requested Account.
461 462 463 |
# File 'lib/models/porcelain.rb', line 461 def account @account end |
#meta ⇒ Object
Reserved for future use.
459 460 461 |
# File 'lib/models/porcelain.rb', line 459 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
463 464 465 |
# File 'lib/models/porcelain.rb', line 463 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
481 482 483 484 485 486 487 |
# File 'lib/models/porcelain.rb', line 481 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 |