Module: Occi::Core::Helpers::Locatable
Overview
Introduces location-based capabilities to every receiver class. Provides methods to access set location value and generate default locations if necessary.
Instance Method Summary collapse
-
#location ⇒ URI
Returns the location of this instance.
Instance Method Details
#location ⇒ URI
Returns the location of this instance. Set location is preferred over the generated one. If no location is known one is generated from available information specific to this instance.
19 20 21 |
# File 'lib/occi/core/helpers/locatable.rb', line 19 def location @location || generate_location end |