Class: ApolloDeploySignalSdk::ValidateLinksRequest
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::ValidateLinksRequest
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: ValidateLinksRequest
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ ValidateLinksRequest
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(html: nil) ⇒ ValidateLinksRequest
constructor
A new instance of ValidateLinksRequest.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(html: nil) ⇒ ValidateLinksRequest
Returns a new instance of ValidateLinksRequest.
677 678 679 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 677 def initialize(html: nil) @html = html end |
Instance Attribute Details
#html ⇒ String?
674 675 676 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 674 def html @html end |
Class Method Details
.from_json(attributes) ⇒ ValidateLinksRequest
Create an instance from a parsed JSON hash.
691 692 693 694 695 696 697 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 691 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( html: attributes.key?("html") ? attributes["html"] : attributes[:html], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
682 683 684 685 686 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 682 def to_h { html: @html, }.compact end |