Class: Transifex::ProjectComponents::Languages
- Inherits:
-
Object
- Object
- Transifex::ProjectComponents::Languages
- Includes:
- CrudRequests::Create, CrudRequests::Fetch
- Defined in:
- lib/transifex/project_components/languages.rb
Constant Summary collapse
- CREATE_REQUIRED_PARAMS =
[:language_code, :coordinators]
Instance Attribute Summary collapse
-
#project_slug ⇒ Object
Returns the value of attribute project_slug.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project_slug = nil) ⇒ Languages
constructor
A new instance of Languages.
Methods included from CrudRequests::Create
Methods included from CrudRequests::Fetch
Constructor Details
#initialize(project_slug = nil) ⇒ Languages
Returns a new instance of Languages.
11 12 13 14 |
# File 'lib/transifex/project_components/languages.rb', line 11 def initialize(project_slug = nil) raise MissingParametersError.new(["project_slug"]) if project_slug.nil? @project_slug = project_slug end |
Instance Attribute Details
#project_slug ⇒ Object
Returns the value of attribute project_slug.
9 10 11 |
# File 'lib/transifex/project_components/languages.rb', line 9 def project_slug @project_slug end |
Class Method Details
.authors ⇒ Object
16 17 18 |
# File 'lib/transifex/project_components/languages.rb', line 16 def self. [:project] end |