Class: Transifex::Language

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_slug, transifex_data) ⇒ Language

Returns a new instance of Language.



5
6
7
8
9
10
11
# File 'lib/transifex/language.rb', line 5

def initialize(project_slug, transifex_data)
  @project_slug = project_slug
  @language_code = transifex_data[:language_code]
  @coordinators = transifex_data[:coordinators]
  @translators = transifex_data[:translators]
  @reviewers = transifex_data[:reviewers]
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/transifex/language.rb', line 3

def client
  @client
end

#coordinatorsObject

Returns the value of attribute coordinators.



3
4
5
# File 'lib/transifex/language.rb', line 3

def coordinators
  @coordinators
end

#language_codeObject

Returns the value of attribute language_code.



3
4
5
# File 'lib/transifex/language.rb', line 3

def language_code
  @language_code
end

#reviewersObject

Returns the value of attribute reviewers.



3
4
5
# File 'lib/transifex/language.rb', line 3

def reviewers
  @reviewers
end

#translatorsObject

Returns the value of attribute translators.



3
4
5
# File 'lib/transifex/language.rb', line 3

def translators
  @translators
end