Sha256: 165df9494c66509b2a628ad7f01731a4da382ff46ebc256a65c3f98f7149ccb4

Contents?: true

Size: 402 Bytes

Versions: 18

Compression:

Stored size: 402 Bytes

Contents

module Expressir
  module Model
    class Type
      include Scope
      include Identifier

      attr_accessor :type
      attr_accessor :where

      def initialize(options = {})
        @id = options[:id]

        @type = options[:type]
        @where = options[:where]
      end

      def children
        items = []
        items.push(*@where) if @where
        items
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
expressir-0.2.8 lib/expressir/model/type.rb
expressir-0.2.8-x86_64-linux lib/expressir/model/type.rb
expressir-0.2.8-x86_64-darwin lib/expressir/model/type.rb
expressir-0.2.8-x86-mingw32 lib/expressir/model/type.rb
expressir-0.2.8-x86-linux lib/expressir/model/type.rb
expressir-0.2.8-x64-mingw32 lib/expressir/model/type.rb
expressir-0.2.8-arm64-darwin lib/expressir/model/type.rb
expressir-0.2.7 lib/expressir/model/type.rb
expressir-0.2.7-x86-mingw32 lib/expressir/model/type.rb
expressir-0.2.7-x64-mingw32 lib/expressir/model/type.rb
expressir-0.2.7-x86_64-linux lib/expressir/model/type.rb
expressir-0.2.7-x86-linux lib/expressir/model/type.rb
expressir-0.2.7-x86_64-darwin lib/expressir/model/type.rb
expressir-0.2.7-arm64-darwin lib/expressir/model/type.rb
expressir-0.2.5-x86_64-linux lib/expressir/model/type.rb
expressir-0.2.5-x86_64-darwin-19 lib/expressir/model/type.rb
expressir-0.2.5 lib/expressir/model/type.rb
expressir-0.2.4 lib/expressir/model/type.rb