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.



6369
6370
6371
6372
6373
6374
6375
6376
6377
# File 'lib/models/porcelain.rb', line 6369

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.



6363
6364
6365
# File 'lib/models/porcelain.rb', line 6363

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



6365
6366
6367
# File 'lib/models/porcelain.rb', line 6365

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6367
6368
6369
# File 'lib/models/porcelain.rb', line 6367

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6379
6380
6381
6382
6383
6384
6385
# File 'lib/models/porcelain.rb', line 6379

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