Sha256: 6240436abea784b0a45fe529ca1170199a80f51faaeb4ffe27a0504a11899748

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 Bytes

Contents

module NistBib
  class CommentPeriod
    # @return [Date]
    attr_reader :from

    # @rerurn [Date, NilClass]
    attr_reader :to

    # @return [Date, NilClass]
    attr_reader :extended

    # @param from [Date]
    # @param to [Date, NilClass]
    # @param extended [Date, NilClass]
    def initialize(from, to = nil, extended = nil)
      @from = from
      @to = to
      @extended = extended
    end

    # @param [Nokogiri::XML::Builder]
    def to_xml(builder)
      builder.commentperiod do
        builder.from from.to_s
        builder.to to.to_s if to
        builder.extended extended.to_s if extended
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nistbib-0.1.9 lib/nistbib/comment_period.rb
nistbib-0.1.8 lib/nistbib/comment_period.rb
nistbib-0.1.7 lib/nistbib/comment_period.rb
nistbib-0.1.6 lib/nistbib/comment_period.rb
nistbib-0.1.5 lib/nistbib/comment_period.rb