Class: Houdah::Tracker
- Inherits:
-
Object
- Object
- Houdah::Tracker
- Defined in:
- lib/houdah/tracker.rb
Instance Attribute Summary collapse
-
#thrift_tracker ⇒ Object
readonly
Returns the value of attribute thrift_tracker.
Instance Method Summary collapse
-
#initialize(client, thrift_tracker) ⇒ Tracker
constructor
A new instance of Tracker.
- #method_missing(method, *args) ⇒ Object
- #tasks ⇒ Object
Constructor Details
#initialize(client, thrift_tracker) ⇒ Tracker
Returns a new instance of Tracker.
6 7 8 9 |
# File 'lib/houdah/tracker.rb', line 6 def initialize(client, thrift_tracker) @client = client @thrift_tracker = thrift_tracker end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
15 16 17 |
# File 'lib/houdah/tracker.rb', line 15 def method_missing(method, *args) @thrift_tracker.send method, *args end |
Instance Attribute Details
#thrift_tracker ⇒ Object (readonly)
Returns the value of attribute thrift_tracker.
4 5 6 |
# File 'lib/houdah/tracker.rb', line 4 def thrift_tracker @thrift_tracker end |
Instance Method Details
#tasks ⇒ Object
11 12 13 |
# File 'lib/houdah/tracker.rb', line 11 def tasks @thrift_tracker.taskReports || [] end |