Sha256: 19ed48c757f11be4490f7492c4710e8e485d463df3a908289f9eaa3e302aef3c

Contents?: true

Size: 725 Bytes

Versions: 7

Compression:

Stored size: 725 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
      # attribute :quantity,     Integer, readonly: true
      # attribute :search_cache, String,  readonly: true
    end

    class ProductAdapter < BaseAdapter
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.1.0 lib/gecko/record/product.rb
gecko-ruby-0.0.10 lib/gecko/record/product.rb
gecko-ruby-0.0.9 lib/gecko/record/product.rb
gecko-ruby-0.0.8 lib/gecko/record/product.rb
gecko-ruby-0.0.7 lib/gecko/record/product.rb
gecko-ruby-0.0.6 lib/gecko/record/product.rb
gecko-ruby-0.0.5 lib/gecko/record/product.rb