Class: Postmen::CreateRateQuery
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::CreateRateQuery
- Defined in:
- lib/postmen/query/create_rate_query.rb
Overview
This class holds all the logic behind preparing query for creating a Rate. It does type convertion, removes empty values and so on.
Instance Method Summary collapse
-
#to_query ⇒ Hash
Converts query object to hash.
Instance Method Details
#to_query ⇒ Hash
Converts query object to hash
15 16 17 18 19 |
# File 'lib/postmen/query/create_rate_query.rb', line 15 def to_query { json: query } end |