Sha256: 6bd50cea79d32fe5b9d95c7f095d9fb0f872fed0f4a37253650357e054e6217c

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

module Seiun
  module XMLParsers
    class JobXML < Base
      class << self
        def each(xml_str, &block)
          parse(xml_str, "jobInfo", block)
        end
      end

      [ :id, :operation, :object, :created_by_id, :created_date, :system_modstamp,
        :state, :content_type, :external_id_field_name
      ].each do |name|
        define_method name do
          to_hash(true)[Seiun::Utils.camelize(name)]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
seiun-1.0.1 lib/seiun/xml_parsers/job_xml.rb
seiun-1.0.0 lib/seiun/xml_parsers/job_xml.rb
seiun-0.2.1 lib/seiun/xml_parsers/job_xml.rb
seiun-0.2.0 lib/seiun/xml_parsers/job_xml.rb
seiun-0.1.0 lib/seiun/xml_parsers/job_xml.rb
seiun-0.0.2 lib/seiun/xml_parsers/job_xml.rb
seiun-0.0.1 lib/seiun/xml_parsers/job_xml.rb