Sha256: 44257c0857ebae50a43b47d1bad5d789dac3fbded99c2de2669fd3eff57550dc

Contents?: true

Size: 424 Bytes

Versions: 37

Compression:

Stored size: 424 Bytes

Contents

module ForestLiana
  class Collection

    include ActiveModel::Validations
    include ActiveModel::Conversion
    include ActiveModel::Serialization
    extend ActiveModel::Naming

    attr_accessor :name, :fields

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

    def persisted?
      false
    end

    def id
      name
    end

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
forest_liana-1.0.11 app/models/forest_liana/collection.rb
forest_liana-1.0.10 app/models/forest_liana/collection.rb
forest_liana-1.0.8 app/models/forest_liana/collection.rb
forest_liana-1.0.7 app/models/forest_liana/collection.rb
forest_liana-1.0.6 app/models/forest_liana/collection.rb
forest_liana-1.0.5 app/models/forest_liana/collection.rb
forest_liana-1.0.4 app/models/forest_liana/collection.rb
forest_liana-1.0.3 app/models/forest_liana/collection.rb
forest_liana-1.0.2 app/models/forest_liana/collection.rb
forest_liana-1.0.1 app/models/forest_liana/collection.rb
forest_liana-1.0.0.beta7 app/models/forest_liana/collection.rb
forest_liana-1.0.0.beta6 app/models/forest_liana/collection.rb
forest_liana-1.0.0.beta5 app/models/forest_liana/collection.rb
forest_liana-1.0.0.pre.beta.4 app/models/forest_liana/collection.rb
forest_liana-1.0.0.pre.beta.3 app/models/forest_liana/collection.rb
forest_liana-1.0.0.pre.beta.2 app/models/forest_liana/collection.rb
forest_liana-1.0.0.pre.beta.1 app/models/forest_liana/collection.rb