Class: Postmen::Types::Item
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::Types::Item
- Defined in:
- lib/postmen/types/item.rb
Overview
Item - element of shippment
Instance Method Summary collapse
-
#to_hash ⇒ Hash
Converts object to hash.
Instance Method Details
#to_hash ⇒ Hash
Converts object to hash
19 20 21 |
# File 'lib/postmen/types/item.rb', line 19 def to_hash super.reject { |_k, v| v.nil? } end |