Class: SDM::IdentitySetUpdateResponse

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

Overview

IdentitySetUpdateResponse returns the fields of a IdentitySet after it has been updated by a IdentitySetUpdateRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identity_set: nil, meta: nil, rate_limit: nil) ⇒ IdentitySetUpdateResponse

Returns a new instance of IdentitySetUpdateResponse.



7158
7159
7160
7161
7162
7163
7164
7165
7166
# File 'lib/models/porcelain.rb', line 7158

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

Instance Attribute Details

#identity_setObject

The updated IdentitySet.



7152
7153
7154
# File 'lib/models/porcelain.rb', line 7152

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



7154
7155
7156
# File 'lib/models/porcelain.rb', line 7154

def meta
  @meta
end

#rate_limitObject

Rate limit information.



7156
7157
7158
# File 'lib/models/porcelain.rb', line 7156

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7168
7169
7170
7171
7172
7173
7174
# File 'lib/models/porcelain.rb', line 7168

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