Sha256: 30539c7f75e71dc624bfad8f6f016d0abb87e94fac81d6826d1337bc78544995

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

module Dineromail
  class Item
    attr_accessor :description, :currency, :unit_price, :count
    
    DOLLAR = 2
    PESO = 1
    
    def initialize(attributes = {})
      attributes.each do |name, value|
        send("#{name}=", value)
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dineromail-0.0.4 lib/dineromail/item.rb
dineromail-0.0.3 lib/dineromail/item.rb