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.



4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
# File 'lib/models/porcelain.rb', line 4008

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.



4002
4003
4004
# File 'lib/models/porcelain.rb', line 4002

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4006
4007
4008
# File 'lib/models/porcelain.rb', line 4006

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



4004
4005
4006
# File 'lib/models/porcelain.rb', line 4004

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4024
4025
4026
4027
4028
4029
4030
# File 'lib/models/porcelain.rb', line 4024

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