Class: SDM::RoleAttachmentGetResponse

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

Overview

RoleAttachmentGetResponse returns a requested RoleAttachment.

Deprecated: use multi-role via AccountAttachments instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RoleAttachmentGetResponse.



4819
4820
4821
4822
4823
4824
4825
4826
4827
# File 'lib/models/porcelain.rb', line 4819

def initialize(
  meta: nil,
  rate_limit: nil,
  role_attachment: nil
)
  @meta = meta == nil ? nil : meta
  @rate_limit = rate_limit == nil ? nil : rate_limit
  @role_attachment = role_attachment == nil ? nil : role_attachment
end

Instance Attribute Details

#metaObject

Reserved for future use.



4813
4814
4815
# File 'lib/models/porcelain.rb', line 4813

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4815
4816
4817
# File 'lib/models/porcelain.rb', line 4815

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



4817
4818
4819
# File 'lib/models/porcelain.rb', line 4817

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4829
4830
4831
4832
4833
4834
4835
# File 'lib/models/porcelain.rb', line 4829

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