Class: SDM::ControlPanelVerifyJWTResponse
- Inherits:
-
Object
- Object
- SDM::ControlPanelVerifyJWTResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ControlPanelVerifyJWTResponse reports whether x-sdm-token is valid.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#valid ⇒ Object
Reports if the given token is valid.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, valid: nil) ⇒ ControlPanelVerifyJWTResponse
constructor
A new instance of ControlPanelVerifyJWTResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, valid: nil) ⇒ ControlPanelVerifyJWTResponse
Returns a new instance of ControlPanelVerifyJWTResponse.
4085 4086 4087 4088 4089 4090 4091 4092 4093 |
# File 'lib/models/porcelain.rb', line 4085 def initialize( meta: nil, rate_limit: nil, valid: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @valid = valid == nil ? false : valid end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4079 4080 4081 |
# File 'lib/models/porcelain.rb', line 4079 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4081 4082 4083 |
# File 'lib/models/porcelain.rb', line 4081 def rate_limit @rate_limit end |
#valid ⇒ Object
Reports if the given token is valid.
4083 4084 4085 |
# File 'lib/models/porcelain.rb', line 4083 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4095 4096 4097 4098 4099 4100 4101 |
# File 'lib/models/porcelain.rb', line 4095 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 |