Module: Mercadopago::Order::Request::HashConversion

Overview

Mixin providing a canonical #to_hash for every Request Data class.

Instance Method Summary collapse

Instance Method Details

#to_hashHash{Symbol => Object}

Returns snake_case body fragment with nils omitted.

Returns:

  • (Hash{Symbol => Object})

    snake_case body fragment with nils omitted



74
75
76
# File 'lib/mercadopago/resources/order/request.rb', line 74

def to_hash
  Request.build_hash(to_h)
end