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.

Deprecated: use multi-role via AccountAttachments instead.

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.



5357
5358
5359
5360
5361
5362
5363
5364
5365
# File 'lib/models/porcelain.rb', line 5357

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

Instance Attribute Details

#metaObject

Reserved for future use.



5351
5352
5353
# File 'lib/models/porcelain.rb', line 5351

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5353
5354
5355
# File 'lib/models/porcelain.rb', line 5353

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



5355
5356
5357
# File 'lib/models/porcelain.rb', line 5355

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5367
5368
5369
5370
5371
5372
5373
# File 'lib/models/porcelain.rb', line 5367

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