Class: Cadenya::Types::ToolSetEvent
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetEvent
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#tool_set_id ⇒ Object
readonly
Returns the value of attribute tool_set_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, tool_set_id: nil, event: nil, info: nil) ⇒ ToolSetEvent
constructor
A new instance of ToolSetEvent.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, tool_set_id: nil, event: nil, info: nil) ⇒ ToolSetEvent
Returns a new instance of ToolSetEvent.
6173 6174 6175 6176 6177 6178 |
# File 'lib/cadenya/types.rb', line 6173 def initialize(metadata: nil, tool_set_id: nil, event: nil, info: nil) @metadata = @tool_set_id = tool_set_id @event = event @info = info end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
6171 6172 6173 |
# File 'lib/cadenya/types.rb', line 6171 def event @event end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
6171 6172 6173 |
# File 'lib/cadenya/types.rb', line 6171 def info @info end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6171 6172 6173 |
# File 'lib/cadenya/types.rb', line 6171 def @metadata end |
#tool_set_id ⇒ Object (readonly)
Returns the value of attribute tool_set_id.
6171 6172 6173 |
# File 'lib/cadenya/types.rb', line 6171 def tool_set_id @tool_set_id end |
Class Method Details
.from_json(data) ⇒ Object
6180 6181 6182 6183 6184 6185 6186 6187 |
# File 'lib/cadenya/types.rb', line 6180 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::OperationMetadata.from_json(data["metadata"]), tool_set_id: data["toolSetId"], event: data["event"].nil? ? nil : Types.decode_ToolSetEventData(data["event"]), info: data["info"].nil? ? nil : Types::ToolSetEventInfo.from_json(data["info"]), ) end |