lib/nuncium/request.rb
def values(xml)
      self.class::ATTRS.each do |attribute|
        value = instance_variable_get("@#{attribute}") || ''
        xml[:v20].public_send(attribute, value)
      end
    end
##
# each subclass needs to have availbale attrs put in constant `ATTRS`
#
each subclass needs to have availbale attrs put in constant `ATTRS`
each subclass needs to have availbale attrs put in constant ` ATTRS `
def values(xml)
      self.class::ATTRS.each do |attribute|
        value = instance_variable_get("@#{attribute}") || ''
        xml[:v20].public_send(attribute, value)
      end
    end
def values ( xml ) self . class :: ATTRS . each do | attribute | value = instance_variable_get ( "@#{attribute}" ) || '' xml [ :v20 ] . public_send ( attribute , value ) end end
each subclass needs to have availbale attrs put in constant `ATTRS`
each subclass needs to have availbale attrs put in constant ` ATTRS `
xml