Class: Cadenya::Types::WorkspaceSecretSpec

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: nil) ⇒ WorkspaceSecretSpec

Returns a new instance of WorkspaceSecretSpec.



7636
7637
7638
# File 'lib/cadenya/types.rb', line 7636

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7634
7635
7636
# File 'lib/cadenya/types.rb', line 7634

def value
  @value
end

Class Method Details

.from_json(data) ⇒ Object



7640
7641
7642
7643
7644
# File 'lib/cadenya/types.rb', line 7640

def self.from_json(data)
  new(
    value: data["value"],
  )
end

Instance Method Details

#to_hObject



7646
7647
7648
7649
7650
# File 'lib/cadenya/types.rb', line 7646

def to_h
  {
    value: Util.plain(@value),
  }.reject { |_k, v| v.nil? }
end