Sha256: c3963e627239cac4f40c50167ccfeb091d3580ce2b64355119c2abd7fbdde632

Contents?: true

Size: 1.28 KB

Versions: 21

Compression:

Stored size: 1.28 KB

Contents

module Origen
  module Specs
    # Ruby Data Class that contains Creation Information for the IP Block
    class Creation_Info
      attr_accessor :author, :date, :revision, :source, :tool, :tool_version, :ip_version

      # Initialize the Creation Info block to store data for latest version of the file.
      #
      # ==== Parameters
      #
      # * author    # Author/Subject Matter Expert for the IP Block
      # * date      # Date that the File was released to Downstream Audiences
      # ==== Source Information
      #
      # * :revision # Revision Information
      # * :source   # Where the Information came from
      #
      # ==== Tool Info
      #
      # * :tool      # Tool that created the initial XML file
      # * :version   # Version of the Tool that created the XML file
      #
      # ==== Example
      #
      #   Creation_Info.new("author", "07/10/2015", :revision => "5.4", :source => "CSV", :tool => "oRiGeN", :tool_version => "0.0.6")
      def initialize(author, date, ip_version, src_info = {}, tool_info = {})
        @author = author
        @date = date
        @ip_version = ip_version
        @revision = src_info[:revision]
        @source = src_info[:source]
        @tool = tool_info[:tool]
        @tool_version = tool_info[:version]
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
origen-0.2.0 lib/origen/specs/creation_info.rb