Module: Camdram::Refreshable

Included in:
Image, Person, Show, Society, User, Venue
Defined in:
lib/camdram/refreshable.rb

Instance Method Summary collapse

Instance Method Details

#refresh!Object

Note:

The object this method is called on is updated 'in place'.

Update the object

Returns:

  • (Object)

    The object the method is called on.


10
11
12
13
14
# File 'lib/camdram/refreshable.rb', line 10

def refresh!
  json = get(self.url_slug)
  self.send(:initialize, json, @client_instance)
  return self
end