Class: Transifex::Stats

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

#completedObject

Returns the value of attribute completed.



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

def completed
  @completed
end

#last_committerObject

Returns the value of attribute last_committer.



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

def last_committer
  @last_committer
end

#last_updateObject

Returns the value of attribute last_update.



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

def last_update
  @last_update
end

#reviewedObject

Returns the value of attribute reviewed.



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

def reviewed
  @reviewed
end

#reviewed_percentageObject

Returns the value of attribute reviewed_percentage.



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

def reviewed_percentage
  @reviewed_percentage
end

#translated_entitiesObject

Returns the value of attribute translated_entities.



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

def translated_entities
  @translated_entities
end

#translated_wordsObject

Returns the value of attribute translated_words.



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

def translated_words
  @translated_words
end

#untranslated_entitiesObject

Returns the value of attribute untranslated_entities.



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

def untranslated_entities
  @untranslated_entities
end

#untranslated_wordsObject

Returns the value of attribute untranslated_words.



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

def untranslated_words
  @untranslated_words
end