lib/iron_bank/describe/related.rb in iron_bank-2.2.0 vs lib/iron_bank/describe/related.rb in iron_bank-3.0.0
- old
+ new
@@ -11,18 +11,18 @@
def self.from_xml(doc)
new(doc)
end
def type
- @type ||= doc.attributes['href'].value.split('/').last
+ @type ||= doc.attributes["href"].value.split("/").last
end
def name
- doc.at_xpath('.//name').text
+ doc.at_xpath(".//name").text
end
def label
- doc.at_xpath('.//label').text
+ doc.at_xpath(".//label").text
end
def inspect
"#<#{self.class}:0x#{(object_id << 1).to_s(16)} #{name} (#{type})>"
end