Class: SDM::RoleCreateResponse

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

Overview

RoleCreateResponse reports how the Roles were created in the system. It can communicate partial successes or failures.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, role: nil, rate_limit: nil) ⇒ RoleCreateResponse

Returns a new instance of RoleCreateResponse.



3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
# File 'lib/models/porcelain.rb', line 3917

def initialize(
	meta:nil \
,
	role:nil \
,
	rate_limit:nil \
)
	if meta != nil
		@meta = meta
	end
	if role != nil
		@role = role
	end
	if rate_limit != nil
		@rate_limit = rate_limit
	end
end

Instance Attribute Details

#metaObject

Reserved for future use.



3912
3913
3914
# File 'lib/models/porcelain.rb', line 3912

def meta
  @meta
end

#rate_limitObject

Rate limit information.



3916
3917
3918
# File 'lib/models/porcelain.rb', line 3916

def rate_limit
  @rate_limit
end

#roleObject

The created Role.



3914
3915
3916
# File 'lib/models/porcelain.rb', line 3914

def role
  @role
end