Class: Transifex::Stats
- Inherits:
-
Object
- Object
- Transifex::Stats
- Defined in:
- lib/transifex/stats.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#last_committer ⇒ Object
Returns the value of attribute last_committer.
-
#last_update ⇒ Object
Returns the value of attribute last_update.
-
#reviewed ⇒ Object
Returns the value of attribute reviewed.
-
#reviewed_percentage ⇒ Object
Returns the value of attribute reviewed_percentage.
-
#translated_entities ⇒ Object
Returns the value of attribute translated_entities.
-
#translated_words ⇒ Object
Returns the value of attribute translated_words.
-
#untranslated_entities ⇒ Object
Returns the value of attribute untranslated_entities.
-
#untranslated_words ⇒ Object
Returns the value of attribute untranslated_words.
Instance Method Summary collapse
-
#initialize(transifex_data) ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize(transifex_data) ⇒ Stats
Returns a new instance of Stats.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/transifex/stats.rb', line 5 def initialize(transifex_data) @completed = transifex_data[:completed] @translated_entities = transifex_data[:translated_entities] @untranslated_entities = transifex_data[:untranslated_entities] @translated_words = transifex_data[:translated_words] @untranslated_words = transifex_data[:untranslated_words] @last_update = transifex_data[:last_update] @last_committer = transifex_data[:last_committer] @reviewed = transifex_data[:reviewed] @reviewed_percentage = transifex_data[:reviewed_percentage] end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def client @client end |
#completed ⇒ Object
Returns the value of attribute completed.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def completed @completed end |
#last_committer ⇒ Object
Returns the value of attribute last_committer.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def last_committer @last_committer end |
#last_update ⇒ Object
Returns the value of attribute last_update.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def last_update @last_update end |
#reviewed ⇒ Object
Returns the value of attribute reviewed.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def reviewed @reviewed end |
#reviewed_percentage ⇒ Object
Returns the value of attribute reviewed_percentage.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def reviewed_percentage @reviewed_percentage end |
#translated_entities ⇒ Object
Returns the value of attribute translated_entities.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def translated_entities @translated_entities end |
#translated_words ⇒ Object
Returns the value of attribute translated_words.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def translated_words @translated_words end |
#untranslated_entities ⇒ Object
Returns the value of attribute untranslated_entities.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def untranslated_entities @untranslated_entities end |
#untranslated_words ⇒ Object
Returns the value of attribute untranslated_words.
3 4 5 |
# File 'lib/transifex/stats.rb', line 3 def untranslated_words @untranslated_words end |