Class: ApolloDeploySignalSdk::EmailValidationStatusResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::EmailValidationStatusResponse
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: EmailValidationStatusResponse
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ EmailValidationStatusResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(object: nil, status:, reason:, validated_at:) ⇒ EmailValidationStatusResponse
constructor
A new instance of EmailValidationStatusResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(object: nil, status:, reason:, validated_at:) ⇒ EmailValidationStatusResponse
Returns a new instance of EmailValidationStatusResponse.
3091 3092 3093 3094 3095 3096 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3091 def initialize(object: nil, status: , reason: , validated_at: ) @object = object @status = status @reason = reason @validated_at = validated_at end |
Instance Attribute Details
#object ⇒ String
3082 3083 3084 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3082 def object @object end |
#reason ⇒ String?
3086 3087 3088 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3086 def reason @reason end |
#status ⇒ String
3084 3085 3086 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3084 def status @status end |
#validated_at ⇒ String?
3088 3089 3090 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3088 def validated_at @validated_at end |
Class Method Details
.from_json(attributes) ⇒ EmailValidationStatusResponse
Create an instance from a parsed JSON hash.
3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3111 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( object: attributes.key?("object") ? attributes["object"] : attributes[:object], status: attributes.key?("status") ? attributes["status"] : attributes[:status], reason: attributes.key?("reason") ? attributes["reason"] : attributes[:reason], validated_at: attributes.key?("validatedAt") ? attributes["validatedAt"] : attributes[:validated_at], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
3099 3100 3101 3102 3103 3104 3105 3106 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3099 def to_h { object: @object, status: @status, reason: @reason, validated_at: @validated_at, }.compact end |