Class: Tractive::Trac
- Inherits:
-
Object
- Object
- Tractive::Trac
- Defined in:
- lib/tractive/trac.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#sessions ⇒ Object
readonly
Returns the value of attribute sessions.
-
#tickets ⇒ Object
readonly
Returns the value of attribute tickets.
-
#wikis ⇒ Object
readonly
Returns the value of attribute wikis.
Instance Method Summary collapse
-
#initialize(db) ⇒ Trac
constructor
A new instance of Trac.
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
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments.
5 6 7 |
# File 'lib/tractive/trac.rb', line 5 def @attachments end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
5 6 7 |
# File 'lib/tractive/trac.rb', line 5 def changes @changes end |
#sessions ⇒ Object (readonly)
Returns the value of attribute sessions.
5 6 7 |
# File 'lib/tractive/trac.rb', line 5 def sessions @sessions end |
#tickets ⇒ Object (readonly)
Returns the value of attribute tickets.
5 6 7 |
# File 'lib/tractive/trac.rb', line 5 def tickets @tickets end |
#wikis ⇒ Object (readonly)
Returns the value of attribute wikis.
5 6 7 |
# File 'lib/tractive/trac.rb', line 5 def wikis @wikis end |