lib/mihari/structs/hunterhow.rb in mihari-5.7.0 vs lib/mihari/structs/hunterhow.rb in mihari-5.7.1
- old
+ new
@@ -25,12 +25,10 @@
class << self
#
# @param [Hash] d
#
- # @return [ListItem]
- #
def from_dynamic!(d)
d = Types::Hash[d]
new(
domain: d.fetch("domain"),
ip: d.fetch("ip"),
@@ -58,12 +56,10 @@
class << self
#
# @param [Hash] d
#
- # @return [DataClass]
- #
def from_dynamic!(d)
d = Types::Hash[d]
new(
list: d.fetch("list").map { |x| ListItem.from_dynamic!(x) },
total: d.fetch("total")
@@ -86,11 +82,9 @@
attribute :message, Types::String
class << self
#
# @param [Hash] d
- #
- # @return [Response]
#
def from_dynamic!(d)
d = Types::Hash[d]
new(
code: d.fetch("code"),