Sha256: a54959c7ffee98acf006332d30ea1fdcc40894c2968e75443152ef9c151fbed7

Contents?: true

Size: 382 Bytes

Versions: 447

Compression:

Stored size: 382 Bytes

Contents

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

  attr_accessor :value

  def initialize(attributes = {})
    attributes.each do |name, value|
      send("#{name}=", value)
    end
  end

  def persisted?
    false
  end

  def id
    SecureRandom.uuid
  end
end

Version data entries

447 entries across 447 versions & 1 rubygems

Version Path
forest_liana-1.1.29 app/models/forest_liana/model/stat.rb
forest_liana-1.1.28 app/models/forest_liana/model/stat.rb
forest_liana-1.1.27 app/models/forest_liana/model/stat.rb
forest_liana-1.1.26 app/models/forest_liana/model/stat.rb
forest_liana-1.1.25 app/models/forest_liana/model/stat.rb
forest_liana-1.1.23 app/models/forest_liana/model/stat.rb
forest_liana-1.1.22 app/models/forest_liana/model/stat.rb