Class: Houdah::Tracker

Inherits:
Object
  • Object
show all
Defined in:
lib/houdah/tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_trackerObject (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

#tasksObject



11
12
13
# File 'lib/houdah/tracker.rb', line 11

def tasks
  @thrift_tracker.taskReports || []
end