Class: SDM::RoleGrantGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleGrantGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleGrantGetResponse returns a requested RoleGrant.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_grant ⇒ Object
The requested RoleGrant.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantGetResponse
constructor
A new instance of RoleGrantGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_grant: nil) ⇒ RoleGrantGetResponse
Returns a new instance of RoleGrantGetResponse.
5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 |
# File 'lib/models/porcelain.rb', line 5780 def initialize( meta: nil, rate_limit: nil, role_grant: nil ) if != nil = end if rate_limit != nil @rate_limit = rate_limit end if role_grant != nil @role_grant = role_grant end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
5774 5775 5776 |
# File 'lib/models/porcelain.rb', line 5774 def end |
#rate_limit ⇒ Object
Rate limit information.
5776 5777 5778 |
# File 'lib/models/porcelain.rb', line 5776 def rate_limit @rate_limit end |
#role_grant ⇒ Object
The requested RoleGrant.
5778 5779 5780 |
# File 'lib/models/porcelain.rb', line 5778 def role_grant @role_grant end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5796 5797 5798 5799 5800 5801 5802 |
# File 'lib/models/porcelain.rb', line 5796 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |