Class: ApolloDeploySignalSdk::ValidateLinksRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/apollo_deploy_signal_sdk/types.rb

Overview

Schema type: ValidateLinksRequest

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html: nil) ⇒ ValidateLinksRequest

Returns a new instance of ValidateLinksRequest.

Parameters:

  • html (String, nil) (defaults to: nil)


677
678
679
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 677

def initialize(html: nil)
  @html = html
end

Instance Attribute Details

#htmlString?

Returns:

  • (String, nil)


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.

Parameters:

  • attributes (Hash)

Returns:



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_hHash

Returns a hash representation of this object.

Returns:

  • (Hash)

    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