Class: SDM::RoleAttachmentGetResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

RoleAttachmentGetResponse returns a requested RoleAttachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentGetResponse

Returns a new instance of RoleAttachmentGetResponse.



6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
# File 'lib/models/porcelain.rb', line 6344

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.



6338
6339
6340
# File 'lib/models/porcelain.rb', line 6338

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6342
6343
6344
# File 'lib/models/porcelain.rb', line 6342

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



6340
6341
6342
# File 'lib/models/porcelain.rb', line 6340

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6360
6361
6362
6363
6364
6365
6366
# File 'lib/models/porcelain.rb', line 6360

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