Class: Tractive::Trac

Inherits:
Object
  • Object
show all
Defined in:
lib/tractive/trac.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db) ⇒ Trac

Returns a new instance of Trac.



7
8
9
10
11
12
13
14
15
# File 'lib/tractive/trac.rb', line 7

def initialize(db)
  $logger.info("loading tickets")
  @db          = db
  @tickets     = Ticket
  @changes     = TicketChange
  @sessions    = Session
  @attachments = Attachment
  @wikis       = Wiki
end

Instance Attribute Details

#attachmentsObject (readonly)

Returns the value of attribute attachments.



5
6
7
# File 'lib/tractive/trac.rb', line 5

def attachments
  @attachments
end

#changesObject (readonly)

Returns the value of attribute changes.



5
6
7
# File 'lib/tractive/trac.rb', line 5

def changes
  @changes
end

#sessionsObject (readonly)

Returns the value of attribute sessions.



5
6
7
# File 'lib/tractive/trac.rb', line 5

def sessions
  @sessions
end

#ticketsObject (readonly)

Returns the value of attribute tickets.



5
6
7
# File 'lib/tractive/trac.rb', line 5

def tickets
  @tickets
end

#wikisObject (readonly)

Returns the value of attribute wikis.



5
6
7
# File 'lib/tractive/trac.rb', line 5

def wikis
  @wikis
end