module Redd::Objects::Thing::Refreshable

Things that can be refreshed with the current data.

Public Instance Methods

refresh!() click to toggle source

Refresh the thing.

# File lib/redd/objects/thing/refreshable.rb, line 7
def refresh!
  body = get('/api/info', id: fullname).body[:data][:children][0]
  deep_merge!(body[:data])
end