Class: TopTL::WebhookTestResult
- Inherits:
-
Object
- Object
- TopTL::WebhookTestResult
show all
- Includes:
- Model
- Defined in:
- lib/toptl/types.rb
Instance Attribute Summary
Attributes included from Model
#raw
Class Method Summary
collapse
Methods included from Model
included, #initialize, #to_h
Class Method Details
.from_hash(data) ⇒ Object
161
162
163
164
165
166
167
168
169
|
# File 'lib/toptl/types.rb', line 161
def self.from_hash(data)
data ||= {}
new(
success: data["success"] == true,
status_code: data["statusCode"] || data["status"],
message: data["message"] || data["error"],
raw: data
)
end
|