Class: SDM::AccountAttachmentCreateResponse
- Inherits:
-
Object
- Object
- SDM::AccountAttachmentCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountAttachmentCreateResponse reports how the AccountAttachments were created in the system.
Instance Attribute Summary collapse
-
#account_attachment ⇒ Object
The created AccountAttachment.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(account_attachment: nil, meta: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse
constructor
A new instance of AccountAttachmentCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_attachment: nil, meta: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse
Returns a new instance of AccountAttachmentCreateResponse.
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 |
# File 'lib/models/porcelain.rb', line 584 def initialize( account_attachment: nil, meta: nil, rate_limit: nil ) if != nil @account_attachment = end if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_attachment ⇒ Object
The created AccountAttachment.
578 579 580 |
# File 'lib/models/porcelain.rb', line 578 def @account_attachment end |
#meta ⇒ Object
Reserved for future use.
580 581 582 |
# File 'lib/models/porcelain.rb', line 580 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
582 583 584 |
# File 'lib/models/porcelain.rb', line 582 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
600 601 602 603 604 605 606 |
# File 'lib/models/porcelain.rb', line 600 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 |