Class: Cadenya::Types::ToolOverlay_ParameterPath

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) ⇒ ToolOverlay_ParameterPath

Returns a new instance of ToolOverlay_ParameterPath.



5835
5836
5837
# File 'lib/cadenya/types.rb', line 5835

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



5833
5834
5835
# File 'lib/cadenya/types.rb', line 5833

def path
  @path
end

Class Method Details

.from_json(data) ⇒ Object



5839
5840
5841
5842
5843
# File 'lib/cadenya/types.rb', line 5839

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

Instance Method Details

#to_hObject



5845
5846
5847
5848
5849
# File 'lib/cadenya/types.rb', line 5845

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