Class: Exa::Responses::MonitorRunListResponse

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/exa/responses/monitor_response.rb

Class Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



68
69
70
71
72
73
74
# File 'lib/exa/responses/monitor_response.rb', line 68

def self.from_hash(hash)
  sym = Helpers.symbolize_keys(hash)
  new(
    data: Array(sym[:data]).map { MonitorRun.from_hash(_1) },
    next_page_token: sym[:nextPageToken]
  )
end