Class: Cadenya::Types::ObjectiveEventData_Cancelled
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_Cancelled
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#cancelled ⇒ Object
readonly
Returns the value of attribute cancelled.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, cancelled: nil) ⇒ ObjectiveEventData_Cancelled
constructor
A new instance of ObjectiveEventData_Cancelled.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, cancelled: nil) ⇒ ObjectiveEventData_Cancelled
Returns a new instance of ObjectiveEventData_Cancelled.
8803 8804 8805 8806 |
# File 'lib/cadenya/types.rb', line 8803 def initialize(type: nil, cancelled: nil) @type = type @cancelled = cancelled end |
Instance Attribute Details
#cancelled ⇒ Object (readonly)
Returns the value of attribute cancelled.
8801 8802 8803 |
# File 'lib/cadenya/types.rb', line 8801 def cancelled @cancelled end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8801 8802 8803 |
# File 'lib/cadenya/types.rb', line 8801 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8808 8809 8810 8811 8812 8813 |
# File 'lib/cadenya/types.rb', line 8808 def self.from_json(data) new( type: data["type"], cancelled: data["cancelled"].nil? ? nil : Types::ObjectiveCancelled.from_json(data["cancelled"]), ) end |