Method: Transifex::Resource#initialize

Defined in:
lib/transifex/resource.rb

#initialize(project_slug, transifex_data) ⇒ Resource



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

def initialize(project_slug, transifex_data)
  @project_slug = project_slug
  @name = transifex_data[:name]
  @category = transifex_data[:category]
  @i18n_type = transifex_data[:i18n_type]
  @source_language_code = transifex_data[:source_language_code]
  @slug = transifex_data[:slug]
end