class Mihari::Structs::Onyphe::Response
Public Class Methods
from_dynamic!(d)
click to toggle source
# File lib/mihari/structs/onyphe.rb, line 32 def self.from_dynamic!(d) d = Types::Hash[d] new( count: d.fetch("count"), error: d.fetch("error"), max_page: d.fetch("max_page"), page: d.fetch("page"), results: d.fetch("results").map { |x| Result.from_dynamic!(x) }, status: d.fetch("status"), total: d.fetch("total") ) end