class Postmen::ShipperAccountUpdateQuery
This class holds all the logic behind updating a ShipperAccount
details @see ShipperAccount.update
Usage
Public Instance Methods
to_query()
click to toggle source
Converts query object to hash @return [Hash]
# File lib/postmen/query/shipper_account_update_query.rb, line 14 def to_query { json: query } end
Private Instance Methods
query()
click to toggle source
# File lib/postmen/query/shipper_account_update_query.rb, line 22 def query { description: description || subject.description, timezone: timezone || subject.timezone, address: (address || subject.address).to_h }.reject { |_k, v| v.nil? } end