Class: Postmen::Types::Address
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::Types::Address
- Defined in:
- lib/postmen/types/address.rb
Overview
Address object
Instance Method Summary collapse
-
#to_hash ⇒ Hash
Converts object to hash.
Instance Method Details
#to_hash ⇒ Hash
Converts object to hash
26 27 28 |
# File 'lib/postmen/types/address.rb', line 26 def to_hash super.reject { |_k, v| v.nil? } end |