Method: KManager::Resources::WebResource#load_content

Defined in:
lib/k_manager/resources/web_resource.rb

#load_contentObject



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/k_manager/resources/web_resource.rb', line 43

def load_content
  if resource_valid?
    begin
      @content = fetch(source_path)
    rescue StandardError => e
      log.error e
    end
  else
    guard("Source url not valid: #{resource_path}")
  end
end