class Transifex::Account
Public Class Methods
new(username, password)
click to toggle source
# File lib/transifex/account.rb, line 7 def initialize(username, password) set_credentials(username, password) end
Public Instance Methods
project(name)
click to toggle source
# File lib/transifex/account.rb, line 15 def project(name) data = get("/project/#{name}/") return if data == 'Not Found' Project.new(data, self) end
projects()
click to toggle source
# File lib/transifex/account.rb, line 11 def projects initializ_projects(get('/projects/')) end
Private Instance Methods
initializ_projects(project_data_array)
click to toggle source
# File lib/transifex/account.rb, line 23 def initializ_projects(project_data_array) project_data_array.map do |project_data| Project.new(project_data, self) end end