Method: Ubicloud::Model#id
- Defined in:
- lib/ubicloud/model.rb
#id ⇒ Object
The model’s id, which will be a 26 character string. This will load the id from Ubicloud if the model instance doesn’t currently store the id (such as when it was initialized with a location and name).
157 158 159 160 161 162 163 164 |
# File 'lib/ubicloud/model.rb', line 157 def id unless (id = @values[:id]) info id = @values[:id] end id end |