Class: Cadenya::Types::ObjectiveEventData_Error
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_Error
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, error: nil) ⇒ ObjectiveEventData_Error
constructor
A new instance of ObjectiveEventData_Error.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, error: nil) ⇒ ObjectiveEventData_Error
Returns a new instance of ObjectiveEventData_Error.
8665 8666 8667 8668 |
# File 'lib/cadenya/types.rb', line 8665 def initialize(type: nil, error: nil) @type = type @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
8663 8664 8665 |
# File 'lib/cadenya/types.rb', line 8663 def error @error end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8663 8664 8665 |
# File 'lib/cadenya/types.rb', line 8663 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8670 8671 8672 8673 8674 8675 |
# File 'lib/cadenya/types.rb', line 8670 def self.from_json(data) new( type: data["type"], error: data["error"].nil? ? nil : Types::ObjectiveError.from_json(data["error"]), ) end |