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.



6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
# File 'lib/models/porcelain.rb', line 6014

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.



6008
6009
6010
# File 'lib/models/porcelain.rb', line 6008

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6012
6013
6014
# File 'lib/models/porcelain.rb', line 6012

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



6010
6011
6012
# File 'lib/models/porcelain.rb', line 6010

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6030
6031
6032
6033
6034
6035
6036
# File 'lib/models/porcelain.rb', line 6030

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