class CheckoutRu::Item

Public Class Methods

coerce(value) click to toggle source
# File lib/checkout_ru/item.rb, line 6
def coerce(value)
  value.is_a?(Array) ?
    value.map{ |hash| new(hash) } :
    new(value)
end