Class: QuartzTorrent::Alarm
- Inherits:
-
Object
- Object
- QuartzTorrent::Alarm
- Defined in:
- lib/quartz_torrent/alarm.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(id, details) ⇒ Alarm
constructor
A new instance of Alarm.
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
#details ⇒ Object
Returns the value of attribute details.
9 10 11 |
# File 'lib/quartz_torrent/alarm.rb', line 9 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/quartz_torrent/alarm.rb', line 8 def id @id end |
#time ⇒ Object
Returns the value of attribute time.
10 11 12 |
# File 'lib/quartz_torrent/alarm.rb', line 10 def time @time end |