Sha256: 24cba00e482ec5363981dd9c939929c2466dc1369910d2de1185901f8eeec831

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

module Expressir
  module Model
    module Identifier
      # @!attribute id
      #   @return [::String]
      # @!attribute remarks
      #   @return [::Array<::String>]
      # @!attribute remark_items
      #   @return [::Array<RemarkItem>]
      # @!attribute source
      #   @return [::String]
      # @!visibility private
      def self.included(mod)
        mod.model_attr_accessor :id, "::String"
        mod.model_attr_accessor :remarks, "::Array<::String>"
        mod.model_attr_accessor :remark_items, "::Array<RemarkItem>"
        mod.model_attr_accessor :source, "::String"
      end

      # @param [Hash] options
      # @option options [::String] :id
      # @option options [::Array<::String>] :remarks
      # @option options [::Array<RemarkItem>] :remark_items
      # @option options [::String] :source
      # @!visibility private
      def initialize_identifier(options = {})
        @id = options[:id]
        @remarks = options[:remarks] || []
        @remark_items = options[:remark_items] || []
        @source = options[:source]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
expressir-2.1.6 lib/expressir/model/identifier.rb
expressir-2.1.5 lib/expressir/model/identifier.rb
expressir-2.1.4 lib/expressir/model/identifier.rb
expressir-2.1.3 lib/expressir/model/identifier.rb
expressir-2.1.2 lib/expressir/model/identifier.rb
expressir-2.1.1 lib/expressir/model/identifier.rb