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.10.5 app/models/forest_liana/model/segment.rb
forest_liana-2.10.4 app/models/forest_liana/model/segment.rb
forest_liana-2.10.3 app/models/forest_liana/model/segment.rb
forest_liana-2.10.2 app/models/forest_liana/model/segment.rb
forest_liana-2.10.1 app/models/forest_liana/model/segment.rb
forest_liana-2.10.0 app/models/forest_liana/model/segment.rb
forest_liana-2.9.2 app/models/forest_liana/model/segment.rb
forest_liana-2.9.1 app/models/forest_liana/model/segment.rb
forest_liana-2.9.0 app/models/forest_liana/model/segment.rb
forest_liana-2.8.6 app/models/forest_liana/model/segment.rb
forest_liana-2.8.5 app/models/forest_liana/model/segment.rb
forest_liana-2.8.4 app/models/forest_liana/model/segment.rb
forest_liana-2.8.3 app/models/forest_liana/model/segment.rb
forest_liana-2.8.2 app/models/forest_liana/model/segment.rb
forest_liana-2.8.1 app/models/forest_liana/model/segment.rb
forest_liana-2.8.0 app/models/forest_liana/model/segment.rb
forest_liana-2.7.0 app/models/forest_liana/model/segment.rb
forest_liana-2.6.1 app/models/forest_liana/model/segment.rb
forest_liana-2.6.0 app/models/forest_liana/model/segment.rb
forest_liana-2.5.5 app/models/forest_liana/model/segment.rb