Class: Occi::Core::Related
- Inherits:
-
Categories
- Object
- Set
- Categories
- Occi::Core::Related
- Defined in:
- lib/occi/core/related.rb
Instance Attribute Summary
Attributes inherited from Categories
Instance Method Summary collapse
- #convert(category) ⇒ Object private
Methods inherited from Categories
#<<, #as_json, #get_related_to, #initialize, #inspect, #join
Constructor Details
This class inherits a constructor from Occi::Core::Categories
Instance Method Details
#convert(category) ⇒ Object (private)
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/occi/core/related.rb', line 7 def convert(category) if category.kind_of? String model_category=nil model_category = @model.get_by_id category if @model if model_category return model_category end end category end |