Class: SDM::RoleAttachmentCreateResponse

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

Overview

RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentCreateResponse

Returns a new instance of RoleAttachmentCreateResponse.



6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
# File 'lib/models/porcelain.rb', line 6213

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

Instance Attribute Details

#metaObject

Reserved for future use.



6207
6208
6209
# File 'lib/models/porcelain.rb', line 6207

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6209
6210
6211
# File 'lib/models/porcelain.rb', line 6209

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



6211
6212
6213
# File 'lib/models/porcelain.rb', line 6211

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6229
6230
6231
6232
6233
6234
6235
# File 'lib/models/porcelain.rb', line 6229

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