Class: SDM::AccountAttachmentCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountAttachmentCreateResponse reports how the AccountAttachments were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, account_attachment: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse

Returns a new instance of AccountAttachmentCreateResponse.



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/models/porcelain.rb', line 127

def initialize(
  meta: nil,
  account_attachment: nil,
  rate_limit: nil
)
  if meta != nil
    @meta = meta
  end
  if  != nil
    @account_attachment = 
  end
  if rate_limit != nil
    @rate_limit = rate_limit
  end
end

Instance Attribute Details

#account_attachmentObject

The created AccountAttachment.



123
124
125
# File 'lib/models/porcelain.rb', line 123

def 
  @account_attachment
end

#metaObject

Reserved for future use.



121
122
123
# File 'lib/models/porcelain.rb', line 121

def meta
  @meta
end

#rate_limitObject

Rate limit information.



125
126
127
# File 'lib/models/porcelain.rb', line 125

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



143
144
145
146
147
148
149
# File 'lib/models/porcelain.rb', line 143

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end