Sha256: 56b8c4aa0baaf9aebafb5b90bdce3189337f1e8de880ea70699e2e06e0f6f80d

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 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

1 entries across 1 versions & 1 rubygems

Version Path
gecko-ruby-0.0.4 lib/gecko/record/product.rb