Method: Fog::Model#reload
- Defined in:
- lib/fog/core/model.rb
#reload ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/fog/core/model.rb', line 26 def reload requires :identity return unless data = begin collection.get(identity) rescue Excon::Errors::SocketError nil end new_attributes = data.attributes merge_attributes(new_attributes) self end |