Method: OMF::SFA::Resource::OGroup#to_hash_long
- Defined in:
- lib/omf-sfa/resource/ogroup.rb
#to_hash_long(h, objs, opts = {}) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/omf-sfa/resource/ogroup.rb', line 79 def to_hash_long(h, objs, opts = {}) super href_only = opts[:level] >= opts[:max_level] h[:resources] = self.contains_resources.map do |r| href_only ? r.href : r.to_hash(objs, opts) end h end |