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.15.8 app/models/forest_liana/model/segment.rb
forest_liana-2.15.7 app/models/forest_liana/model/segment.rb
forest_liana-2.15.6 app/models/forest_liana/model/segment.rb
forest_liana-2.15.5 app/models/forest_liana/model/segment.rb
forest_liana-2.15.4 app/models/forest_liana/model/segment.rb
forest_liana-2.15.3 app/models/forest_liana/model/segment.rb
forest_liana-2.15.2 app/models/forest_liana/model/segment.rb
forest_liana-2.15.1 app/models/forest_liana/model/segment.rb
forest_liana-2.15.0 app/models/forest_liana/model/segment.rb
forest_liana-2.14.7 app/models/forest_liana/model/segment.rb
forest_liana-2.14.6 app/models/forest_liana/model/segment.rb
forest_liana-2.14.5 app/models/forest_liana/model/segment.rb
forest_liana-2.14.4 app/models/forest_liana/model/segment.rb
forest_liana-2.14.3 app/models/forest_liana/model/segment.rb
forest_liana-2.14.2 app/models/forest_liana/model/segment.rb
forest_liana-2.14.1 app/models/forest_liana/model/segment.rb
forest_liana-2.14.0 app/models/forest_liana/model/segment.rb
forest_liana-2.13.7 app/models/forest_liana/model/segment.rb
forest_liana-2.13.6 app/models/forest_liana/model/segment.rb
forest_liana-2.13.5 app/models/forest_liana/model/segment.rb