Class: SDM::IdentitySetGetResponse

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

Overview

IdentitySetGetResponse returns a requested IdentitySet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IdentitySetGetResponse.



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

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 requested IdentitySet.



5579
5580
5581
# File 'lib/models/porcelain.rb', line 5579

def identity_set
  @identity_set
end

#metaObject

Reserved for future use.



5581
5582
5583
# File 'lib/models/porcelain.rb', line 5581

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5583
5584
5585
# File 'lib/models/porcelain.rb', line 5583

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5595
5596
5597
5598
5599
5600
5601
# File 'lib/models/porcelain.rb', line 5595

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