Class: SDM::AccountAttachmentGetResponse
- Inherits:
-
Object
- Object
- SDM::AccountAttachmentGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountAttachmentGetResponse returns a requested AccountAttachment.
Instance Attribute Summary collapse
-
#account_attachment ⇒ Object
The requested 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) ⇒ AccountAttachmentGetResponse
constructor
A new instance of AccountAttachmentGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, account_attachment: nil, rate_limit: nil) ⇒ AccountAttachmentGetResponse
Returns a new instance of AccountAttachmentGetResponse.
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/models/porcelain.rb', line 187 def initialize( meta: nil, account_attachment: nil, rate_limit: nil ) if != nil @meta = end if != nil @account_attachment = end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#account_attachment ⇒ Object
The requested AccountAttachment.
183 184 185 |
# File 'lib/models/porcelain.rb', line 183 def @account_attachment end |
#meta ⇒ Object
Reserved for future use.
181 182 183 |
# File 'lib/models/porcelain.rb', line 181 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
185 186 187 |
# File 'lib/models/porcelain.rb', line 185 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
203 204 205 206 207 208 209 |
# File 'lib/models/porcelain.rb', line 203 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 |