class Postmen::CreateManifestQuery
This class holds all the logic behind preparing query for creating a Manifest
. It does type convertion, removes empty values and so on.
Public Instance Methods
to_query()
click to toggle source
Converts query object to hash @return [Hash]
# File lib/postmen/query/create_manifest_query.rb, line 11 def to_query { json: query } end
Private Instance Methods
query()
click to toggle source
# File lib/postmen/query/create_manifest_query.rb, line 19 def query to_hash.reject { |_k, v| v.nil? } end