Class: Transifex::ProjectComponents::Languages

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CrudRequests::Create

included

Methods included from CrudRequests::Fetch

included

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_slugObject

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

.authorsObject



16
17
18
# File 'lib/transifex/project_components/languages.rb', line 16

def self.authors
  [:project]      
end