Class: Transifex::Projects

Inherits:
Object
  • Object
show all
Includes:
CrudRequests::Create, CrudRequests::Fetch
Defined in:
lib/transifex/projects.rb

Constant Summary collapse

CREATE_REQUIRED_PARAMS =
[:slug, :name, :description, :source_language_code, :repository_url, :private]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CrudRequests::Create

included

Methods included from CrudRequests::Fetch

included

Class Method Details

.create(params = {}, options = {}) ⇒ Object



17
18
19
20
# File 'lib/transifex/projects.rb', line 17

def self.create(params = {}, options = {})
  Projects.new.create(params, options)
  Transifex::Project.new(params[:slug])
end

.fetchObject



8
9
10
# File 'lib/transifex/projects.rb', line 8

def self.fetch
  Transifex::Projects.new.fetch      
end

Instance Method Details

#fetch_with_detailsObject



12
13
14
15
# File 'lib/transifex/projects.rb', line 12

def fetch_with_details
  options = {:details => true}
  fetch(options)      
end