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(meta: nil, account_attachment: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse
constructor
A new instance of AccountAttachmentCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account_attachment: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse
Returns a new instance of AccountAttachmentCreateResponse.
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/models/porcelain.rb', line 142 def initialize( meta:nil \ , account_attachment:nil \ , rate_limit:nil \ ) if != nil = end if != nil = end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_attachment ⇒ Object
The created AccountAttachment.
139 140 141 |
# File 'lib/models/porcelain.rb', line 139 def end |
#meta ⇒ Object
Reserved for future use.
137 138 139 |
# File 'lib/models/porcelain.rb', line 137 def end |
#rate_limit ⇒ Object
Rate limit information.
141 142 143 |
# File 'lib/models/porcelain.rb', line 141 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
159 160 161 162 163 164 165 |
# File 'lib/models/porcelain.rb', line 159 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 |