Sha256: ec0e067eb2f2b35066d5b1c182a0f1f0ba5b0612b8c6ac8a5ae70f2ed2505519

Contents?: true

Size: 408 Bytes

Versions: 156

Compression:

Stored size: 408 Bytes

Contents

class ForestLiana::Model::Segment
  include ActiveModel::Validations
  include ActiveModel::Conversion
  include ActiveModel::Serialization
  extend ActiveModel::Naming

  attr_accessor :id, :name, :scope, :where

  def initialize(attributes = {}, &block)
    attributes.each do |name, value|
      send("#{name}=", value)
    end
    
    @where = block if block
  end

  def persisted?
    false
  end
end

Version data entries

156 entries across 156 versions & 1 rubygems

Version Path
forest_liana-2.5.4 app/models/forest_liana/model/segment.rb
forest_liana-2.5.3 app/models/forest_liana/model/segment.rb
forest_liana-2.5.2 app/models/forest_liana/model/segment.rb
forest_liana-2.5.1 app/models/forest_liana/model/segment.rb
forest_liana-2.5.0 app/models/forest_liana/model/segment.rb
forest_liana-2.4.9 app/models/forest_liana/model/segment.rb
forest_liana-2.4.8 app/models/forest_liana/model/segment.rb
forest_liana-2.4.7 app/models/forest_liana/model/segment.rb
forest_liana-2.4.6 app/models/forest_liana/model/segment.rb
forest_liana-2.4.5 app/models/forest_liana/model/segment.rb
forest_liana-2.4.4 app/models/forest_liana/model/segment.rb
forest_liana-2.4.3 app/models/forest_liana/model/segment.rb
forest_liana-2.4.2 app/models/forest_liana/model/segment.rb
forest_liana-2.4.1 app/models/forest_liana/model/segment.rb
forest_liana-2.4.0 app/models/forest_liana/model/segment.rb
forest_liana-2.3.5 app/models/forest_liana/model/segment.rb
forest_liana-2.3.4 app/models/forest_liana/model/segment.rb
forest_liana-2.3.3 app/models/forest_liana/model/segment.rb
forest_liana-2.3.2 app/models/forest_liana/model/segment.rb
forest_liana-2.3.1 app/models/forest_liana/model/segment.rb