Class: Cadenya::Types::ObjectiveEventData_ToolDenied
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_ToolDenied
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#tool_denied ⇒ Object
readonly
Returns the value of attribute tool_denied.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, tool_denied: nil) ⇒ ObjectiveEventData_ToolDenied
constructor
A new instance of ObjectiveEventData_ToolDenied.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, tool_denied: nil) ⇒ ObjectiveEventData_ToolDenied
Returns a new instance of ObjectiveEventData_ToolDenied.
8619 8620 8621 8622 |
# File 'lib/cadenya/types.rb', line 8619 def initialize(type: nil, tool_denied: nil) @type = type @tool_denied = tool_denied end |
Instance Attribute Details
#tool_denied ⇒ Object (readonly)
Returns the value of attribute tool_denied.
8617 8618 8619 |
# File 'lib/cadenya/types.rb', line 8617 def tool_denied @tool_denied end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8617 8618 8619 |
# File 'lib/cadenya/types.rb', line 8617 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8624 8625 8626 8627 8628 8629 |
# File 'lib/cadenya/types.rb', line 8624 def self.from_json(data) new( type: data["type"], tool_denied: data["toolDenied"].nil? ? nil : Types::ToolDenied.from_json(data["toolDenied"]), ) end |