def item(price, item_name)
      @current_nesting_level[item_name.to_s] = price.respond_to?(:to_hash) ? price.to_hash : price.to_i
    end
def item(price, item_name)
      @current_nesting_level[item_name.to_s] = price.respond_to?(:to_hash) ? price.to_hash : price.to_i
    end
Creates PriceBuilder on a target object.

 @param [Object] object the target object on which price is being built.
 Adds price item to the current nesting level of price definition.

 @param [#to_hash, #to_i] price an integer representing amount for this price item.
   Alternatively, anything that responds to #to_hash can be used,
   and will be treated as a group named with item_name.
 @param [#to_s] item_name name for the provided price item or group.

 @see #group