Class: Txgh::TxResource
- Inherits:
-
Object
- Object
- Txgh::TxResource
- Defined in:
- lib/ext/txgh/tx_resource.rb
Class Method Summary collapse
Class Method Details
.from_api_response(project_slug, response) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ext/txgh/tx_resource.rb', line 6 def from_api_response(project_slug, response) new( project_slug, response['slug'], response['i18n_type'], response['source_language_code'], response['name'], '', nil ) end |