Class: Cadenya::Types::SyncFailed
- Inherits:
-
Object
- Object
- Cadenya::Types::SyncFailed
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error: nil, message: nil, error_type: nil) ⇒ SyncFailed
constructor
A new instance of SyncFailed.
- #to_h ⇒ Object
Constructor Details
#initialize(error: nil, message: nil, error_type: nil) ⇒ SyncFailed
Returns a new instance of SyncFailed.
5456 5457 5458 5459 5460 |
# File 'lib/cadenya/types.rb', line 5456 def initialize(error: nil, message: nil, error_type: nil) @error = error @message = @error_type = error_type end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5454 5455 5456 |
# File 'lib/cadenya/types.rb', line 5454 def error @error end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
5454 5455 5456 |
# File 'lib/cadenya/types.rb', line 5454 def error_type @error_type end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5454 5455 5456 |
# File 'lib/cadenya/types.rb', line 5454 def @message end |
Class Method Details
.from_json(data) ⇒ Object
5462 5463 5464 5465 5466 5467 5468 |
# File 'lib/cadenya/types.rb', line 5462 def self.from_json(data) new( error: data["error"], message: data["message"], error_type: data["errorType"], ) end |