Module: Medusa::Uuidable

Included in:
Resource
Defined in:
lib/medusa/uuidable.rb

Instance Method Summary collapse

Instance Method Details

#uuid_urlString

Returns Absolute URI of the Medusa resource, or nil if the instance does not have a UUID.

Returns:

  • (String)

    Absolute URI of the Medusa resource, or nil if the instance does not have a UUID.



9
10
11
12
13
14
15
# File 'lib/medusa/uuidable.rb', line 9

def uuid_url
  if self.uuid
    [::Medusa::Client.configuration[:medusa_base_url].chomp('/'),
     'uuids',
     self.uuid.to_s.strip].join('/')
  end
end