Sha256: 04908ceb0631570c567bef00de7b8e2616709143ec0b75f8748b455c341fdbbe

Contents?: true

Size: 168 Bytes

Versions: 9

Compression:

Stored size: 168 Bytes

Contents

class Language
  attr_reader :name, :code

  def initialize name, code
    @name = name
    @code = code
  end

  def to_s
    "(" + code + ": " + name + ")"
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
google-translate-1.1.3 lib/google_translate/language.rb
google-translate-1.1.2 lib/google_translate/language.rb
google-translate-1.1.1 lib/google_translate/language.rb
google-translate-1.1.0 lib/google_translate/language.rb
google-translate-1.0.1 lib/google_translate/language.rb
google-translate-1.0.0 lib/google_translate/language.rb
google-translate-0.8.8 lib/google_translate/language.rb
google-translate-0.8.7 lib/google_translate/language.rb
google-translate-0.8.6 lib/google_translate/language.rb