Class: Exa::Responses::WebhookListResponse
- Inherits:
-
T::Struct
- Object
- T::Struct
- Exa::Responses::WebhookListResponse
- Defined in:
- lib/exa/responses/webhook_response.rb
Class Method Summary collapse
Class Method Details
.from_hash(hash) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/exa/responses/webhook_response.rb', line 37 def self.from_hash(hash) sym = Helpers.symbolize_keys(hash) new( data: Array(sym[:data]).map { Webhook.from_hash(_1) }, has_more: sym[:hasMore], next_cursor: sym[:nextCursor] ) end |