Class: ApolloDeploySignalSdk::UpdateBimiRequest

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

Overview

Schema type: UpdateBimiRequest

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logo_url: nil) ⇒ UpdateBimiRequest

Returns a new instance of UpdateBimiRequest.

Parameters:

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


4695
4696
4697
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4695

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

Instance Attribute Details

#logo_urlString?

Returns:

  • (String, nil)


4692
4693
4694
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4692

def logo_url
  @logo_url
end

Class Method Details

.from_json(attributes) ⇒ UpdateBimiRequest

Create an instance from a parsed JSON hash.

Parameters:

  • attributes (Hash)

Returns:



4709
4710
4711
4712
4713
4714
4715
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4709

def self.from_json(attributes)
  return nil unless attributes.is_a?(Hash)

  new(
    logo_url: attributes.key?("logoUrl") ? attributes["logoUrl"] : attributes[:logo_url],
  )
end

Instance Method Details

#to_hHash

Returns a hash representation of this object.

Returns:

  • (Hash)

    a hash representation of this object



4700
4701
4702
4703
4704
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 4700

def to_h
  {
    logo_url: @logo_url,
  }.compact
end