Class: TG::Tag
- Inherits:
-
Object
- Object
- TG::Tag
- Defined in:
- lib/models/tg/tag.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.portfolios ⇒ Object
8 9 10 |
# File 'lib/models/tg/tag.rb', line 8 def self.portfolios query.nodes( :out, via: HC::D2F , expand: false) end |
Instance Method Details
#portfolios ⇒ Object
3 4 5 6 |
# File 'lib/models/tg/tag.rb', line 3 def portfolios iz= out( HC::D2F ).compact.map( &:in ) # eliminates entries if no HC::D2F is detected iz unless iz.empty? # returns nil if no portfolio is detected end |