Module: AvataxClient::ReverseCoercion::ClassMethods

Defined in:
lib/avatax_client/reverse_coercion.rb

Overview

Class methods

Instance Method Summary collapse

Instance Method Details

#collection_to_body(values) ⇒ Array

Override to allow for Modification at the colleciton level. Defaults to calling ‘.to_body` for each element.

Parameters:

  • values (Array)

    collection items to be transformed.

Returns:

  • (Array)


15
16
17
# File 'lib/avatax_client/reverse_coercion.rb', line 15

def collection_to_body(values)
  values.map(&:to_body)
end