Sha256: 35bc6569e3fdce7e705cdb6446ccaf6182e5e68df25e4908105725d26aefe98d

Contents?: true

Size: 714 Bytes

Versions: 17

Compression:

Stored size: 714 Bytes

Contents

module GeoCerts
  module Endpoints # :nodoc:
    
    module Products # :nodoc:
      
      def self.included(base)
        base.class_eval do
          endpoint GeoCerts::API::ENDPOINT do
            
            action :products, :url => '/products.xml' do
              parser Parsers::OrderParser do
                element :products do
                  elements :product do
                    element :name
                    element :sku
                    element :code
                    element 'max-years', :as => :max_years, :type => Integer
                  end
                end
              end
            end
            
          end
        end
      end
      
    end
    
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geocerts-1.0.1 lib/geo_certs/endpoints/products.rb
geocerts-1.0.0 lib/geo_certs/endpoints/products.rb
geocerts-0.0.25 lib/geo_certs/endpoints/products.rb
geocerts-0.0.24 lib/geo_certs/endpoints/products.rb
geocerts-0.0.23 lib/geo_certs/endpoints/products.rb
geocerts-0.0.22 lib/geo_certs/endpoints/products.rb
geocerts-0.0.21 lib/geo_certs/endpoints/products.rb
geocerts-0.0.20 lib/geo_certs/endpoints/products.rb
geocerts-0.0.19 lib/geo_certs/endpoints/products.rb
geocerts-0.0.18 lib/geo_certs/endpoints/products.rb
geocerts-0.0.17 lib/geo_certs/endpoints/products.rb
geocerts-0.0.16 lib/geo_certs/endpoints/products.rb
geocerts-0.0.15 lib/geo_certs/endpoints/products.rb
geocerts-0.0.14 lib/geo_certs/endpoints/products.rb
geocerts-0.0.13 lib/geo_certs/endpoints/products.rb
geocerts-0.0.12 lib/geo_certs/endpoints/products.rb
geocerts-0.0.11 lib/geo_certs/endpoints/products.rb