Class: Postmen::CreateShipperAccountQuery

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

Overview

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

See Also:

Instance Method Summary collapse

Instance Method Details

#to_queryHash

Converts query object to hash

Returns:

  • (Hash)


16
17
18
19
20
# File 'lib/postmen/query/create_shipper_account_query.rb', line 16

def to_query
  {
    params: query
  }
end