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.
10238 10239 10240 10241 10242 10243 10244 10245 10246 |
# File 'lib/models/porcelain.rb', line 10238 def initialize( meta: nil, rate_limit: nil, remote_identity: nil ) @meta = == 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.
10232 10233 10234 |
# File 'lib/models/porcelain.rb', line 10232 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
10234 10235 10236 |
# File 'lib/models/porcelain.rb', line 10234 def rate_limit @rate_limit end |
#remote_identity ⇒ Object
The requested RemoteIdentity.
10236 10237 10238 |
# File 'lib/models/porcelain.rb', line 10236 def remote_identity @remote_identity end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10248 10249 10250 10251 10252 10253 10254 |
# File 'lib/models/porcelain.rb', line 10248 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 |