Class: Postmen::CreateManifestQuery

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/postmen/query/create_manifest_query.rb

Overview

This class holds all the logic behind preparing query for creating a Manifest. It does type convertion, removes empty values and so on.

Instance Method Summary collapse

Instance Method Details

#to_queryHash

Converts query object to hash



11
12
13
14
15
# File 'lib/postmen/query/create_manifest_query.rb', line 11

def to_query
  {
    json: query
  }
end