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.



9627
9628
9629
9630
9631
9632
9633
9634
9635
# File 'lib/models/porcelain.rb', line 9627

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.



9621
9622
9623
# File 'lib/models/porcelain.rb', line 9621

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



9623
9624
9625
# File 'lib/models/porcelain.rb', line 9623

def meta
  @meta
end

#rate_limitObject

Rate limit information.



9625
9626
9627
# File 'lib/models/porcelain.rb', line 9625

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9637
9638
9639
9640
9641
9642
9643
# File 'lib/models/porcelain.rb', line 9637

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