Class: SDM::RemoteIdentityUpdateResponse
- Inherits:
-
Object
- Object
- SDM::RemoteIdentityUpdateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RemoteIdentityUpdateResponse returns the fields of a RemoteIdentity after it has been updated by a RemoteIdentityUpdateRequest.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#remote_identity ⇒ Object
The updated RemoteIdentity.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, remote_identity: nil) ⇒ RemoteIdentityUpdateResponse
constructor
A new instance of RemoteIdentityUpdateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, remote_identity: nil) ⇒ RemoteIdentityUpdateResponse
Returns a new instance of RemoteIdentityUpdateResponse.
14115 14116 14117 14118 14119 14120 14121 14122 14123 |
# File 'lib/models/porcelain.rb', line 14115 def initialize( meta: nil, rate_limit: nil, remote_identity: nil ) = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @remote_identity = remote_identity == nil ? nil : remote_identity end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
14109 14110 14111 |
# File 'lib/models/porcelain.rb', line 14109 def end |
#rate_limit ⇒ Object
Rate limit information.
14111 14112 14113 |
# File 'lib/models/porcelain.rb', line 14111 def rate_limit @rate_limit end |
#remote_identity ⇒ Object
The updated RemoteIdentity.
14113 14114 14115 |
# File 'lib/models/porcelain.rb', line 14113 def remote_identity @remote_identity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
14125 14126 14127 14128 14129 14130 14131 |
# File 'lib/models/porcelain.rb', line 14125 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |