Class: Cadenya::Types::ToolOverlay_WidgetArgumentExposure

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(enabled: nil) ⇒ ToolOverlay_WidgetArgumentExposure

Returns a new instance of ToolOverlay_WidgetArgumentExposure.



5890
5891
5892
# File 'lib/cadenya/types.rb', line 5890

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

Instance Attribute Details

#enabledObject (readonly)

Returns the value of attribute enabled.



5888
5889
5890
# File 'lib/cadenya/types.rb', line 5888

def enabled
  @enabled
end

Class Method Details

.from_json(data) ⇒ Object



5894
5895
5896
5897
5898
# File 'lib/cadenya/types.rb', line 5894

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

Instance Method Details

#to_hObject



5900
5901
5902
5903
5904
# File 'lib/cadenya/types.rb', line 5900

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