Class: Exa::Responses::ContentStatus

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

Class Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



10
11
12
13
# File 'lib/exa/responses/contents_response.rb', line 10

def self.from_hash(hash)
  sym = Helpers.symbolize_keys(hash)
  new(id: sym[:id], status: sym[:status], error: sym[:error])
end