class Postmen::ShipperAccountQuery
This class holds all the logic behind querying for a single ShipperAccount
. @see ShipperAccountCollection.find
Usage
Public Instance Methods
to_query()
click to toggle source
Converts query object to hash @return [Hash]
# File lib/postmen/query/shipper_account_query.rb, line 13 def to_query { params: query } end
Private Instance Methods
query()
click to toggle source
# File lib/postmen/query/shipper_account_query.rb, line 21 def query { slug: slug, limit: limit, next_token: next_token }.reject { |_k, v| v.nil? } end