Sha256: 59fca844518aee8ab399caca8743c335414cfdc810ae7e3956cf365c5f3d4c49

Contents?: true

Size: 665 Bytes

Versions: 11

Compression:

Stored size: 665 Bytes

Contents

module GeoCerts
  class Order < ApiObject
    
    ##
    # Organizes any renewal information received back about an Order.
    # 
    class RenewalInformation
    
      attr_accessor :months,
                    :serial_number,
                    :geotrust_order_id,
                    :expires_at
      attr_reader   :indicator
    
    
      def initialize(attributes = {})
        attributes.each_pair do |name, value|
          send("#{name}=", value) if respond_to?(name)
        end
      end
    
      def indicator=(input) # :nodoc:
        @indicator = !!(input =~ /true/i)
      end
    
      alias :indicator? :indicator
    
    end
  
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geocerts-1.0.1 lib/geo_certs/order/renewal_information.rb
geocerts-1.0.0 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.25 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.24 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.23 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.22 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.21 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.20 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.19 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.18 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.17 lib/geo_certs/order/renewal_information.rb