Class: Cadenya::Types::ParameterAction_Remove

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(path: nil) ⇒ ParameterAction_Remove

Returns a new instance of ParameterAction_Remove.



4542
4543
4544
# File 'lib/cadenya/types.rb', line 4542

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4540
4541
4542
# File 'lib/cadenya/types.rb', line 4540

def path
  @path
end

Class Method Details

.from_json(data) ⇒ Object



4546
4547
4548
4549
4550
# File 'lib/cadenya/types.rb', line 4546

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

Instance Method Details

#to_hObject



4552
4553
4554
4555
4556
# File 'lib/cadenya/types.rb', line 4552

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