Sha256: 7c0e217119e645b130aa14c802bd81d3cd68bef16398d88705364671f76ab873
Contents?: true
Size: 374 Bytes
Versions: 5
Compression:
Stored size: 374 Bytes
Contents
require 'nokogiri' require 'hashie' module Redfinger class Link < Hashie::Mash def initialize(xml_link) self[:rel] = xml_link['rel'] self[:href] = xml_link['href'] self[:type] = xml_link['type'] end # Outputs the URL of the link, useful for using # a Link directly in other libraries. def to_s self.href end end end
Version data entries
5 entries across 5 versions & 1 rubygems