class CatAPI::Image
Public Class Methods
new(xml)
click to toggle source
# File lib/cat_api/image.rb, line 3 def initialize(xml) xml.elements.map do |attribute| instance_variable_set "@#{attribute.node_name}", attribute.text CatAPI::Image.class_eval { attr_reader attribute.node_name.to_sym } end end