Class: Cadenya::Types::GetToolSetOpenAPISpecResponse

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(spec: nil) ⇒ GetToolSetOpenAPISpecResponse

Returns a new instance of GetToolSetOpenAPISpecResponse.



2269
2270
2271
# File 'lib/cadenya/types.rb', line 2269

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

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



2267
2268
2269
# File 'lib/cadenya/types.rb', line 2267

def spec
  @spec
end

Class Method Details

.from_json(data) ⇒ Object



2273
2274
2275
2276
2277
# File 'lib/cadenya/types.rb', line 2273

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

Instance Method Details

#to_hObject



2279
2280
2281
2282
2283
# File 'lib/cadenya/types.rb', line 2279

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