Class: CalMon::ObserveRPC
- Inherits:
-
Object
- Object
- CalMon::ObserveRPC
- Defined in:
- lib/CalMon/ObserveRPC.rb
Instance Method Summary collapse
-
#initialize(rpc_instance) ⇒ ObserveRPC
constructor
A new instance of ObserveRPC.
- #update(timestamp, method) ⇒ Object
Constructor Details
#initialize(rpc_instance) ⇒ ObserveRPC
Returns a new instance of ObserveRPC.
12 13 14 |
# File 'lib/CalMon/ObserveRPC.rb', line 12 def initialize(rpc_instance) rpc_instance.add_observer(self) end |
Instance Method Details
#update(timestamp, method) ⇒ Object
16 17 18 |
# File 'lib/CalMon/ObserveRPC.rb', line 16 def update(, method) puts "Successfully received " << .to_s << " from " << method end |