Sha256: 3b19c562d09f992dc6a68bcccf7aa05e013a852a8c299627c0dbab745d43882b
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
module Expressir module Model class Type attr_accessor :id attr_accessor :type attr_accessor :where attr_accessor :remarks def initialize(options = {}) @id = options[:id] @type = options[:type] @where = options[:where] @remarks = options[:remarks] end def scope_items items = [] items.push(*@where) if @where items end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
expressir-0.2.2 | lib/expressir/model/type.rb |
expressir-0.2.1 | lib/expressir/model/type.rb |