Lokalise APIv2 Ruby SDK

Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.

View the Project on GitHub lokalise/ruby-lokalise-api




Teams

Fetch teams

Doc

@client.teams(params = {})  # Input:
                            ## params (hash)
                            ### :page and :limit
                            # Output:
                            ## Collection of teams

For example:

params = {
  page: 3,
  limit: 2
}

teams = @client.teams params

teams[0].plan # => 'Trial'

Fetch a single team

Doc

@client.team(team_id) # Input:
                      ## team_id (String or Integer)
                      # Output:
                      ## Team resource

For example:

team_id = 12345
team = @client.team team_id

team.name # => "My Team"