class Transifex::Project

Attributes

project_slug[RW]
resources[RW]

Public Class Methods

new(project_slug = nil) click to toggle source
# File lib/tx-ruby/project.rb, line 12
def initialize(project_slug = nil)
  raise MissingParametersError.new("You must provide a slug for a project") if project_slug.nil?
  @project_slug = project_slug
end

Public Instance Methods

fetch_with_details() click to toggle source
# File lib/tx-ruby/project.rb, line 33
def fetch_with_details
  options = {:details => true}
  fetch(options)      
end
language(language_code) click to toggle source
# File lib/tx-ruby/project.rb, line 29
def language(language_code)
  Transifex::ProjectComponents::Language.new(@project_slug, language_code)
end
languages() click to toggle source
# File lib/tx-ruby/project.rb, line 25
def languages
  Transifex::ProjectComponents::Languages.new(@project_slug)
end
resource(resource_slug) click to toggle source
# File lib/tx-ruby/project.rb, line 21
def resource(resource_slug)
  Transifex::Resource.new(@project_slug, resource_slug)
end