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.



6051
6052
6053
6054
6055
6056
6057
6058
6059
# File 'lib/models/porcelain.rb', line 6051

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.



6045
6046
6047
# File 'lib/models/porcelain.rb', line 6045

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



6047
6048
6049
# File 'lib/models/porcelain.rb', line 6047

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6049
6050
6051
# File 'lib/models/porcelain.rb', line 6049

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6061
6062
6063
6064
6065
6066
6067
# File 'lib/models/porcelain.rb', line 6061

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