item_models 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a5831e6b27ca369000469633e9705f72176dc1099680e0b0f76a8f70324bcc1
4
- data.tar.gz: 87ed49238cc083e45d5b5d4b4cfbbb7fc4dc2482ade5ab187e7aa1614da4e28f
3
+ metadata.gz: 314088a7af4e6bd0c431eba03e472e7d07396e3469411bc66b13ed8fdcca1d1b
4
+ data.tar.gz: c76223de463bc63858eacbb680a66c3df393625f6970dc1432cdc5c885725313
5
5
  SHA512:
6
- metadata.gz: 7551632c1c38821d01b6f7b8633597dd6a266c3c6724a80973e2de3ac4710bd5169845d176e0a17091c7653dfa867b5f4f6f0359fbf152b344e766094284ec5c
7
- data.tar.gz: 7fdc402b31fa49f470a208b7f14aa555a38622d74070de4ebb52bb6ff3509c2459d60950e72b130b91f8bb5962612aa075d8486c500918c98251037173a8a139
6
+ metadata.gz: dce1a3fa5b1fcead3696d2e6a69d2f572b6f8f922d708e9ad442424b71acd7189de1a539ff4f7f66f9c084f82e4b34c2b88b3d7e2d1ad37a26283550af788b75
7
+ data.tar.gz: 60f5eb9acbb9496e15e43b773d1589c4387f7b713d846152db9702af2e9173392663a255d6fc71ce4cdfce96434e98b9a26c47bf547c53282a77d9319e84cbee
@@ -1,6 +1,21 @@
1
- require "item_models/version"
1
+ # frozen_string_literal: true
2
+
3
+ require 'item_models/version'
2
4
 
3
5
  module ItemModels
4
6
  class Error < StandardError; end
5
7
  # Your code goes here...
8
+ def self.load
9
+ files.each {|file| require file }
10
+ end
11
+
12
+ private
13
+
14
+ def self.files
15
+ Dir[ directory + '/lib/models/*.rb']
16
+ end
17
+
18
+ def self.directory
19
+ Gem::Specification.find_by_name("item_models").gem_dir
20
+ end
6
21
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ItemModels
2
- VERSION = "0.0.0"
4
+ VERSION = '0.0.1'
3
5
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AvailabilityOption < ApplicationRecord
4
+ self.table_name = 'item_activities'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AvailabilityOption < ApplicationRecord
4
+ self.table_name = 'item_availability_options'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Bundle < ApplicationRecord
4
+ self.table_name = 'item_bundles'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class BundleVariant < ApplicationRecord
4
+ self.table_name = 'item_bundle_variants'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Image < ApplicationRecord
4
+ self.table_name = 'item_images'
5
+ end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Item < ApplicationRecord
2
4
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListing < ApplicationRecord
4
+ self.table_name = 'item_channel_associations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingBrand < ApplicationRecord
4
+ self.table_name = 'item_channel_association_brands'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingCategory < ApplicationRecord
4
+ self.table_name = 'item_channel_association_categories'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingCustomField < ApplicationRecord
4
+ self.table_name = 'item_channel_association_custom_fields'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingImage < ApplicationRecord
4
+ self.table_name = 'item_channel_association_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingVariantCustomField < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ItemListingVariantImage < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MasterCatalog < ApplicationRecord
4
+ self.table_name = 'item_variant_master_assocs'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MasterCatalogImage < ApplicationRecord
4
+ self.table_name = 'item_variant_master_image_assocs'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Variant < ApplicationRecord
4
+ self.table_name = 'item_variants'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantImage < ApplicationRecord
4
+ self.table_name = 'item_variant_images'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListing < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_associations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListingPriceHistory < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantListingStockAllocation < ApplicationRecord
4
+ self.table_name = 'item_channel_association_variant_association_stock_allocations'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantOption < ApplicationRecord
4
+ self.table_name = 'item_variant_options'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class VariantOptionAssociation < ApplicationRecord
4
+ self.table_name = 'item_variant_option_associations'
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2020-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,7 +61,28 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - lib/item_models.rb
63
63
  - lib/item_models/version.rb
64
+ - lib/models/activity.rb
65
+ - lib/models/availability_option.rb
66
+ - lib/models/bundle.rb
67
+ - lib/models/bundle_variant.rb
68
+ - lib/models/image.rb
64
69
  - lib/models/item.rb
70
+ - lib/models/item_listing.rb
71
+ - lib/models/item_listing_brand.rb
72
+ - lib/models/item_listing_category.rb
73
+ - lib/models/item_listing_custom_field.rb
74
+ - lib/models/item_listing_image.rb
75
+ - lib/models/item_listing_variant_custom_field.rb
76
+ - lib/models/item_listing_variant_image.rb
77
+ - lib/models/master_catalog.rb
78
+ - lib/models/master_catalog_image.rb
79
+ - lib/models/variant.rb
80
+ - lib/models/variant_image.rb
81
+ - lib/models/variant_listing.rb
82
+ - lib/models/variant_listing_price_history.rb
83
+ - lib/models/variant_listing_stock_allocation.rb
84
+ - lib/models/variant_option.rb
85
+ - lib/models/variant_option_association.rb
65
86
  homepage:
66
87
  licenses:
67
88
  - MIT
@@ -70,6 +91,7 @@ post_install_message:
70
91
  rdoc_options: []
71
92
  require_paths:
72
93
  - lib
94
+ - lib/models
73
95
  required_ruby_version: !ruby/object:Gem::Requirement
74
96
  requirements:
75
97
  - - ">="