class Senkyoshi::Link

Represents a link between Blackboard resources.

Public Class Methods

get_pre_data(xml_data, _file) click to toggle source
# File lib/senkyoshi/models/link.rb, line 21
def self.get_pre_data(xml_data, _file)
  {
    referrer: xml_data.children.at("REFERRER").attributes["id"].value,
    referred_to: xml_data.children.at("REFERREDTO").attributes["id"].value,
    referred_to_title: xml_data.children.at("TITLE").
      attributes["value"].value,
  }
end