Sha256: 40ee8c8f90f23ec689912c770a8c60ed20270aaccb670509ca07ccd86be6b81b
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true module Physical class Item < Cuboid DEFAULT_LENGTH = 0 attr_reader :cost, :sku, :description def initialize(cost: nil, sku: nil, description: nil, **kwargs) @cost = Types::Money.optional[cost] @sku = sku @description = description super kwargs end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
physical-0.4.4 | lib/physical/item.rb |