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.



4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
# File 'lib/models/porcelain.rb', line 4014

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.



4008
4009
4010
# File 'lib/models/porcelain.rb', line 4008

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4012
4013
4014
# File 'lib/models/porcelain.rb', line 4012

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



4010
4011
4012
# File 'lib/models/porcelain.rb', line 4010

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4030
4031
4032
4033
4034
4035
4036
# File 'lib/models/porcelain.rb', line 4030

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