Sha256: 8f08e8580321486df27be54cd067da1a438e6402bca33669a6dfef75a5f0103f

Contents?: true

Size: 611 Bytes

Versions: 13

Compression:

Stored size: 611 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class Product < Base
      has_many :variants
      attribute :name,         String
      attribute :description,  String
      attribute :product_type, String
      attribute :supplier,     String
      attribute :brand,        String
      attribute :opt1,         String
      attribute :opt2,         String
      attribute :opt3,         String
      attribute :tags,         String

      attribute :status,       String

      attribute :image_url,    String,  readonly: true
    end

    class ProductAdapter < BaseAdapter
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/product.rb
gecko-ruby-0.9.0 lib/gecko/record/product.rb
gecko-ruby-0.8.0 lib/gecko/record/product.rb
gecko-ruby-0.2.6 lib/gecko/record/product.rb
gecko-ruby-0.7.1 lib/gecko/record/product.rb
gecko-ruby-0.7.0 lib/gecko/record/product.rb
gecko-ruby-0.6.0 lib/gecko/record/product.rb
gecko-ruby-0.5.0 lib/gecko/record/product.rb
gecko-ruby-0.2.5 lib/gecko/record/product.rb
gecko-ruby-0.2.4 lib/gecko/record/product.rb
gecko-ruby-0.2.3 lib/gecko/record/product.rb
gecko-ruby-0.2.2 lib/gecko/record/product.rb
gecko-ruby-0.2.0 lib/gecko/record/product.rb