Class: Cadenya::Types::ToolOverlay_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(type: nil, remove: nil) ⇒ ToolOverlay_ParameterAction_Remove

Returns a new instance of ToolOverlay_ParameterAction_Remove.



8366
8367
8368
8369
# File 'lib/cadenya/types.rb', line 8366

def initialize(type: nil, remove: nil)
  @type = type
  @remove = remove
end

Instance Attribute Details

#removeObject (readonly)

Returns the value of attribute remove.



8364
8365
8366
# File 'lib/cadenya/types.rb', line 8364

def remove
  @remove
end

#typeObject (readonly)

Returns the value of attribute type.



8364
8365
8366
# File 'lib/cadenya/types.rb', line 8364

def type
  @type
end

Class Method Details

.from_json(data) ⇒ Object



8371
8372
8373
8374
8375
8376
# File 'lib/cadenya/types.rb', line 8371

def self.from_json(data)
  new(
    type: data["type"],
    remove: data["remove"].nil? ? nil : Types::ParameterAction_Remove.from_json(data["remove"]),
  )
end

Instance Method Details

#to_hObject



8378
8379
8380
8381
8382
8383
# File 'lib/cadenya/types.rb', line 8378

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