Class: Cadenya::Types::ToolSetAdapter_OpenapiVariant
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_OpenapiVariant
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#openapi ⇒ Object
readonly
Returns the value of attribute openapi.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, openapi: nil) ⇒ ToolSetAdapter_OpenapiVariant
constructor
A new instance of ToolSetAdapter_OpenapiVariant.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, openapi: nil) ⇒ ToolSetAdapter_OpenapiVariant
Returns a new instance of ToolSetAdapter_OpenapiVariant.
7993 7994 7995 7996 |
# File 'lib/cadenya/types.rb', line 7993 def initialize(type: nil, openapi: nil) @type = type @openapi = openapi end |
Instance Attribute Details
#openapi ⇒ Object (readonly)
Returns the value of attribute openapi.
7991 7992 7993 |
# File 'lib/cadenya/types.rb', line 7991 def openapi @openapi end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7991 7992 7993 |
# File 'lib/cadenya/types.rb', line 7991 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7998 7999 8000 8001 8002 8003 |
# File 'lib/cadenya/types.rb', line 7998 def self.from_json(data) new( type: data["type"], openapi: data["openapi"].nil? ? nil : Types.decode_ToolSetAdapter_OpenAPI(data["openapi"]), ) end |