GeoCerts/geocerts

View on GitHub
lib/geo_certs/endpoints/agreements.rb

Summary

Maintainability
A
0 mins
Test Coverage
module GeoCerts
  module Endpoints # :nodoc:
    
    module Agreements # :nodoc:
      
      def self.included(base)
        base.class_eval do
          endpoint GeoCerts::API::ENDPOINT do
            
            action :agreement, :url => '/products/:product_id/agreement.xml' do
              parser Parsers::OrderParser do
                element :agreement
              end
            end
            
          end
        end
      end
      
    end
    
  end
end