Class: SDM::IdentityAliasGetResponse
- Inherits:
-
Object
- Object
- SDM::IdentityAliasGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
IdentityAliasGetResponse returns a requested IdentityAlias.
Instance Attribute Summary collapse
-
#identity_alias ⇒ Object
The requested IdentityAlias.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(identity_alias: nil, meta: nil, rate_limit: nil) ⇒ IdentityAliasGetResponse
constructor
A new instance of IdentityAliasGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(identity_alias: nil, meta: nil, rate_limit: nil) ⇒ IdentityAliasGetResponse
Returns a new instance of IdentityAliasGetResponse.
6570 6571 6572 6573 6574 6575 6576 6577 6578 |
# File 'lib/models/porcelain.rb', line 6570 def initialize( identity_alias: nil, meta: nil, rate_limit: nil ) @identity_alias = identity_alias == nil ? nil : identity_alias @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#identity_alias ⇒ Object
The requested IdentityAlias.
6564 6565 6566 |
# File 'lib/models/porcelain.rb', line 6564 def identity_alias @identity_alias end |
#meta ⇒ Object
Reserved for future use.
6566 6567 6568 |
# File 'lib/models/porcelain.rb', line 6566 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
6568 6569 6570 |
# File 'lib/models/porcelain.rb', line 6568 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6580 6581 6582 6583 6584 6585 6586 |
# File 'lib/models/porcelain.rb', line 6580 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 |