line_item.rb 286 B

1234567891011121314
  1. module ShopifyAPI
  2. class LineItem < Base
  3. class Property < Base
  4. def initialize(*args)
  5. attributes = args[0] || {}
  6. persisted = args[1] || false
  7. super
  8. rescue NameError
  9. attributes = attributes.to_hash
  10. self
  11. end
  12. end
  13. end
  14. end