Class: Transifex::Language
- Inherits:
-
Object
- Object
- Transifex::Language
- Defined in:
- lib/transifex/language.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#coordinators ⇒ Object
Returns the value of attribute coordinators.
-
#language_code ⇒ Object
Returns the value of attribute language_code.
-
#reviewers ⇒ Object
Returns the value of attribute reviewers.
-
#translators ⇒ Object
Returns the value of attribute translators.
Instance Method Summary collapse
-
#initialize(project_slug, transifex_data) ⇒ Language
constructor
A new instance of Language.
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
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/transifex/language.rb', line 3 def client @client end |
#coordinators ⇒ Object
Returns the value of attribute coordinators.
3 4 5 |
# File 'lib/transifex/language.rb', line 3 def coordinators @coordinators end |
#language_code ⇒ Object
Returns the value of attribute language_code.
3 4 5 |
# File 'lib/transifex/language.rb', line 3 def language_code @language_code end |
#reviewers ⇒ Object
Returns the value of attribute reviewers.
3 4 5 |
# File 'lib/transifex/language.rb', line 3 def reviewers @reviewers end |
#translators ⇒ Object
Returns the value of attribute translators.
3 4 5 |
# File 'lib/transifex/language.rb', line 3 def translators @translators end |