class NistBib::CommentPeriod

Attributes

extended[R]

@return [Date, NilClass]

from[R]

@return [Date]

to[R]

@rerurn [Date, NilClass]

Public Class Methods

new(from, to = nil, extended = nil) click to toggle source

@param from [Date] @param to [Date, NilClass] @param extended [Date, NilClass]

# File lib/nistbib/comment_period.rb, line 15
def initialize(from, to = nil, extended = nil)
  @from = from
  @to = to
  @extended = extended
end

Public Instance Methods

to_xml(builder) click to toggle source

@param [Nokogiri::XML::Builder]

# File lib/nistbib/comment_period.rb, line 22
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