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, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentCreateResponse

Returns a new instance of RoleAttachmentCreateResponse.



4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
# File 'lib/models/porcelain.rb', line 4554

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

Instance Attribute Details

#metaObject

Reserved for future use.



4549
4550
4551
# File 'lib/models/porcelain.rb', line 4549

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4553
4554
4555
# File 'lib/models/porcelain.rb', line 4553

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



4551
4552
4553
# File 'lib/models/porcelain.rb', line 4551

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4571
4572
4573
4574
4575
4576
4577
# File 'lib/models/porcelain.rb', line 4571

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