Class: Muxi::Webhook::ErrorDetails
- Inherits:
-
Struct
- Object
- Struct
- Muxi::Webhook::ErrorDetails
- Defined in:
- lib/muxi/webhook.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#trace ⇒ Object
Returns the value of attribute trace.
Class Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
27 28 29 |
# File 'lib/muxi/webhook.rb', line 27 def code @code end |
#message ⇒ Object
Returns the value of attribute message
27 28 29 |
# File 'lib/muxi/webhook.rb', line 27 def @message end |
#trace ⇒ Object
Returns the value of attribute trace
27 28 29 |
# File 'lib/muxi/webhook.rb', line 27 def trace @trace end |
Class Method Details
.from_hash(data) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/muxi/webhook.rb', line 28 def self.from_hash(data) new( code: data["code"] || "unknown", message: data["message"] || "Unknown error", trace: data["trace"] ) end |