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
14357 14358 14359 14360 14361 14362 14363 14364 14365 |
# File 'lib/models/porcelain.rb', line 14357 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.
14351 14352 14353 |
# File 'lib/models/porcelain.rb', line 14351 def end |
#rate_limit ⇒ Object
Rate limit information.
14353 14354 14355 |
# File 'lib/models/porcelain.rb', line 14353 def rate_limit @rate_limit end |
#remote_identity ⇒ Object
The requested RemoteIdentity.
14355 14356 14357 |
# File 'lib/models/porcelain.rb', line 14355 def remote_identity @remote_identity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
14367 14368 14369 14370 14371 14372 14373 |
# File 'lib/models/porcelain.rb', line 14367 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 |