Class: ApolloDeploySignalSdkRails::ListApiKeysResponse

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

Overview

Schema type without properties: ListApiKeysResponse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ListApiKeysResponse

Returns a new instance of ListApiKeysResponse.

Parameters:

  • attributes (Hash) (defaults to: {})


4898
4899
4900
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4898

def initialize(attributes = {})
  @attributes = attributes
end

Instance Attribute Details

#attributesHash (readonly)

Returns raw attributes.

Returns:

  • (Hash)

    raw attributes



4895
4896
4897
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4895

def attributes
  @attributes
end

Class Method Details

.from_json(attributes) ⇒ ListApiKeysResponse

Create an instance from a parsed JSON hash.

Parameters:

  • attributes (Hash)

Returns:



4910
4911
4912
4913
4914
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4910

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

  new(attributes)
end

Instance Method Details

#to_hHash

Returns:

  • (Hash)


4903
4904
4905
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4903

def to_h
  @attributes.dup
end