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.



4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
# File 'lib/models/porcelain.rb', line 4587

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.



4582
4583
4584
# File 'lib/models/porcelain.rb', line 4582

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4586
4587
4588
# File 'lib/models/porcelain.rb', line 4586

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



4584
4585
4586
# File 'lib/models/porcelain.rb', line 4584

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4604
4605
4606
4607
4608
4609
4610
# File 'lib/models/porcelain.rb', line 4604

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