Class: Mihari::Structs::HunterHow::Response
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::HunterHow::Response
- Defined in:
- lib/mihari/structs/hunterhow.rb
Instance Attribute Summary collapse
- #code ⇒ Integer readonly
- #data ⇒ DataClass readonly
- #message ⇒ String readonly
Class Method Summary collapse
Instance Attribute Details
#code ⇒ Integer (readonly)
74 |
# File 'lib/mihari/structs/hunterhow.rb', line 74 attribute :code, Types::Int |
Class Method Details
.from_dynamic!(d) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/mihari/structs/hunterhow.rb', line 88 def from_dynamic!(d) d = Types::Hash[d] new( code: d.fetch("code"), data: DataClass.from_dynamic!(d.fetch("data")), message: d.fetch("message") ) end |