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.



5575
5576
5577
5578
5579
5580
5581
5582
5583
# File 'lib/models/porcelain.rb', line 5575

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.



5569
5570
5571
# File 'lib/models/porcelain.rb', line 5569

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



5571
5572
5573
# File 'lib/models/porcelain.rb', line 5571

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5573
5574
5575
# File 'lib/models/porcelain.rb', line 5573

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5585
5586
5587
5588
5589
5590
5591
# File 'lib/models/porcelain.rb', line 5585

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