Class: QuartzTorrent::Alarm

Inherits:
Object
  • Object
show all
Defined in:
lib/quartz_torrent/alarm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, details) ⇒ Alarm

Returns a new instance of Alarm.



3
4
5
6
# File 'lib/quartz_torrent/alarm.rb', line 3

def initialize(id, details)
  @details = details
  @time = Time.new
end

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



9
10
11
# File 'lib/quartz_torrent/alarm.rb', line 9

def details
  @details
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/quartz_torrent/alarm.rb', line 8

def id
  @id
end

#timeObject

Returns the value of attribute time.



10
11
12
# File 'lib/quartz_torrent/alarm.rb', line 10

def time
  @time
end