Sha256: 3e93367abe6feae74dd945bbe59a37f9a6612fc71621a97105f81deb020c1f87

Contents?: true

Size: 656 Bytes

Versions: 6

Compression:

Stored size: 656 Bytes

Contents

module GeoCerts
  class Order < ApiObject
    
    ##
    # Organizes any renewal information received back about an Order.
    # 
    class RenewalInformation
    
      attr_accessor :months,
                    :serial_number,
                    :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

6 entries across 6 versions & 1 rubygems

Version Path
geocerts-0.0.16 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.15 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.14 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.13 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.12 lib/geo_certs/order/renewal_information.rb
geocerts-0.0.11 lib/geo_certs/order/renewal_information.rb