Class: Trac::Base

### Home Classes Methods

### In Files

- lib/trac4r.rb

### Parent

Object

### Methods

- ::new
- #api_version
- #query

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Trac
- Trac::Base
- Trac::Query
- Trac::Ticket
- Trac::Tickets
- Trac::TracException
- Trac::Wiki

No matching classes.

# Trac::Base

### Attributes

pass[R]
tickets[R]
user[R]
wiki[R]

### Public Class Methods

new(url,user,pass) click to toggle source

    # File lib/trac4r.rb, line 64
    def initialize url,user,pass
      @user = user
      @pass = pass
      @url = url
      @url.gsub!(/\/$/,'')
      if @url.split('/').last != 'xmlrpc'
        @url = url+'/xmlrpc'
      end
      @connection = Query.new(@url,@user,@pass)
      @wiki = Wiki.new(@connection)
      @tickets = Tickets.new(@connection)
    end

### Public Instance Methods

api_version() click to toggle source

    # File lib/trac4r.rb, line 81
    def api_version
      @connection.query("system.getAPIVersion")
    end

query(command,*args) click to toggle source

    # File lib/trac4r.rb, line 77
    def query(command,*args)
      @connection.query(command,*args)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.