Class: SDM::RemoteIdentityGetResponse
- Inherits:
-
Object
- Object
- SDM::RemoteIdentityGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RemoteIdentityGetResponse returns a requested RemoteIdentity.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#remote_identity ⇒ Object
The requested RemoteIdentity.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, remote_identity: nil) ⇒ RemoteIdentityGetResponse
constructor
A new instance of RemoteIdentityGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, remote_identity: nil) ⇒ RemoteIdentityGetResponse
Returns a new instance of RemoteIdentityGetResponse.
15230 15231 15232 15233 15234 15235 15236 15237 15238 |
# File 'lib/models/porcelain.rb', line 15230 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.
15224 15225 15226 |
# File 'lib/models/porcelain.rb', line 15224 def end |
#rate_limit ⇒ Object
Rate limit information.
15226 15227 15228 |
# File 'lib/models/porcelain.rb', line 15226 def rate_limit @rate_limit end |
#remote_identity ⇒ Object
The requested RemoteIdentity.
15228 15229 15230 |
# File 'lib/models/porcelain.rb', line 15228 def remote_identity @remote_identity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
15240 15241 15242 15243 15244 15245 15246 |
# File 'lib/models/porcelain.rb', line 15240 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 |