Sha256: e7c1ec6705a806f7881903d5444e8ff6d4211dee1bb4cb887bb464c42e7707f0

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

module LanguageDetection

  class Language

    attr_accessor :name, :code, :reliable, :text_bytes, :details, :percent, :score

    def initialize(attributes = {})
      attributes.each_pair do |attribute, value|
        self.send("#{attribute}=", value)
      end

      @details ||= []
      @name.downcase!
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
language_detection-0.1.1 lib/language_detection/language.rb
language_detection-0.1.0 lib/language_detection/language.rb
language_detection-0.0.2 lib/language_detection/language.rb