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.



5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
# File 'lib/models/porcelain.rb', line 5047

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.



5041
5042
5043
# File 'lib/models/porcelain.rb', line 5041

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5045
5046
5047
# File 'lib/models/porcelain.rb', line 5045

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



5043
5044
5045
# File 'lib/models/porcelain.rb', line 5043

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5063
5064
5065
5066
5067
5068
5069
# File 'lib/models/porcelain.rb', line 5063

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