Method: TentD::Model::Following#update_profile
- Defined in:
- lib/tentd/model/following.rb
#update_profile ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/tentd/model/following.rb', line 51 def update_profile client = TentClient.new(core_profile.servers, auth_details.merge(:faraday_adapter => TentD.faraday_adapter)) res = client.profile.get if res.status == 200 self.profile = res.body self.licenses = core_profile.licenses self.entity = core_profile.entity end save profile end |