module Soybean::SoapAttribute::ClassMethods

Public Instance Methods

soap_attribute(*attrs) click to toggle source
# File lib/soybean/soap_attribute.rb, line 11
      def soap_attribute(*attrs)
        self.attributes = (self.attributes + attrs).uniq
        attr_accessor *attrs
        attrs.delete_if { |s| s.to_s.underscore == s.to_s }.each do |meth|
          self.class_eval <<-RUBY
            def #{meth.to_s.underscore}
              #{meth}
            end
          RUBY
        end
      end