Class: ApolloDeploySignalSdk::SetImageUrlBody
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::SetImageUrlBody
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: SetImageUrlBody
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ SetImageUrlBody
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(url:) ⇒ SetImageUrlBody
constructor
A new instance of SetImageUrlBody.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(url:) ⇒ SetImageUrlBody
Returns a new instance of SetImageUrlBody.
2866 2867 2868 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 2866 def initialize(url: ) @url = url end |
Instance Attribute Details
#url ⇒ String
2863 2864 2865 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 2863 def url @url end |
Class Method Details
.from_json(attributes) ⇒ SetImageUrlBody
Create an instance from a parsed JSON hash.
2880 2881 2882 2883 2884 2885 2886 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 2880 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( url: attributes.key?("url") ? attributes["url"] : attributes[:url], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
2871 2872 2873 2874 2875 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 2871 def to_h { url: @url, }.compact end |