Class: TopTL::WebhookConfig
- Inherits:
-
Object
- Object
- TopTL::WebhookConfig
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
144
145
146
147
148
149
150
151
|
# File 'lib/toptl/types.rb', line 144
def self.from_hash(data)
data ||= {}
new(
url: data["url"] || data["webhookUrl"],
reward_title: data["rewardTitle"],
raw: data
)
end
|