dwcr 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96fb651b2ab1999f9a52a280d5b69c3f6eb7a640fbc63dfc9787e5959f938b8f
4
- data.tar.gz: 8a062e9e1bb3fbebaa54ad1b47ad35f5c0b73e1cfc5340e38df1ff3b9d1b5b22
3
+ metadata.gz: 0a257aa208432a7f9fc29881c3e1af607243628de3f90dacafa586d83d99da3a
4
+ data.tar.gz: fe2ef7bbc92609704c0360205d984495e4d80f72e35b6ecc62490df264d9e453
5
5
  SHA512:
6
- metadata.gz: eb6c3e01a785f32e42602964d529f46f1c36c0483bfa6dc3051eef0a1a7e66dc769e15660d99dd38064e366f7534a0f0498e1124b5f8f74de2a405411f5d9df2
7
- data.tar.gz: ef11efdea046206200abdb561b03aa8e7a77a012b76a473492231570ea8f532acd96e4ee21a6c48f4d42fda7878d97520bb85ae14a2ebf543961bbbcec924b2b
6
+ metadata.gz: b50e205788088a8e8b5f3409da5daffa76cab49390190170b67fe2356bffe615b062bc93c9d4736cccacd16f4bb874785967f6055d1b81954d26fd0af2334a0f
7
+ data.tar.gz: a569b7b3e5719e860c0ab9fe061c8a7f6ed7201c8675fe1d1abad766b6b36b81ce5977eebc5c23174d613846942ddcca1b50ba77a8c37dcd73b7fc754e288bc4
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # convenience methods for the dynamic models
3
+ # DynamicModelQueryable contains methods for the dynamic DwCR models.
4
4
  module DynamicModelQueryable
5
- # convenience class methods for the dynamic models
5
+ # DynamicModelClassQueryable contains class methods for dynamic DwCR models.
6
6
  module DynamicModelClassQueryable
7
7
  # Returns the Metaschema::Attribute for a +column_name+ (the header of the
8
8
  # column, can be passed as Symbol or String).
@@ -29,6 +29,11 @@ module DynamicModelQueryable
29
29
  end
30
30
  tmpl
31
31
  end
32
+
33
+ # Returns the full DwC class term (a uri), including namespace.
34
+ def term
35
+ entity.term
36
+ end
32
37
  end
33
38
 
34
39
  # Extends the class that DynamicModelQueryable is mixed in with
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwcr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Stein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-14 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri