Class: Cadenya::Types::ToolOverlay_ParameterAction_Set

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, set: nil) ⇒ ToolOverlay_ParameterAction_Set

Returns a new instance of ToolOverlay_ParameterAction_Set.



8389
8390
8391
8392
# File 'lib/cadenya/types.rb', line 8389

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

Instance Attribute Details

#setObject (readonly)

Returns the value of attribute set.



8387
8388
8389
# File 'lib/cadenya/types.rb', line 8387

def set
  @set
end

#typeObject (readonly)

Returns the value of attribute type.



8387
8388
8389
# File 'lib/cadenya/types.rb', line 8387

def type
  @type
end

Class Method Details

.from_json(data) ⇒ Object



8394
8395
8396
8397
8398
8399
# File 'lib/cadenya/types.rb', line 8394

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

Instance Method Details

#to_hObject



8401
8402
8403
8404
8405
8406
# File 'lib/cadenya/types.rb', line 8401

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