Class: GoogleAjax::Language::Language

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/google_ajax/language.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Language

Returns a new instance of Language.



21
22
23
# File 'lib/google_ajax/language.rb', line 21

def initialize(data)
  super(data)
end

Instance Method Details

#nameObject



25
26
27
# File 'lib/google_ajax/language.rb', line 25

def name
  LANGUAGES.invert[self.language]
end