Sha256: e65e304bec383c1be149b85b8a5f422c7abddcb72fb48f0a4200a6fc69c2599b
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
require 'xml/mapping_extensions' require_relative 'embargo_type' module Stash module Wrapper # Mapping class for `<st:embargo>` class Embargo include ::XML::Mapping typesafe_enum_node :type, 'type', class: EmbargoType text_node :period, 'period' date_node :start_date, 'start', zulu: true date_node :end_date, 'end', zulu: true # Creates a new {Embargo} object # @param type [EmbargoType] The embargo type # @param period [String] The embargo period # @param start_date [Date] The embargo start date # @param end_date [Date] The embargo end date def initialize(type:, period:, start_date:, end_date:) self.type = type self.period = period self.start_date = start_date self.end_date = end_date end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stash-wrapper-0.1.1 | lib/stash/wrapper/embargo.rb |