Sha256: 419045fc61b6a9ef9aea9c193bae0efb141614db454985b33cb9bbc38a66f1a3

Contents?: true

Size: 603 Bytes

Versions: 7

Compression:

Stored size: 603 Bytes

Contents

require 'geo_certs/order/contact'

module GeoCerts
  class Order < ApiObject
    
    ##
    # Used for setting or retrieving the Administrator associated with a GeoCerts::Order.
    # 
    class Administrator < Contact
      
      def to_geocerts_hash #:nodoc:
        {
          :administrator_first_name => GeoCerts.escape(self.first_name),
          :administrator_last_name  => GeoCerts.escape(self.last_name),
          :administrator_phone      => GeoCerts.escape(self.phone),
          :administrator_email      => GeoCerts.escape(self.email)
        }
      end
      
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geocerts-1.0.1 lib/geo_certs/order/administrator.rb
geocerts-1.0.0 lib/geo_certs/order/administrator.rb
geocerts-0.0.25 lib/geo_certs/order/administrator.rb
geocerts-0.0.24 lib/geo_certs/order/administrator.rb
geocerts-0.0.23 lib/geo_certs/order/administrator.rb
geocerts-0.0.22 lib/geo_certs/order/administrator.rb
geocerts-0.0.21 lib/geo_certs/order/administrator.rb