Class: Backburner::BackburnerObject
- Inherits:
-
Object
- Object
- Backburner::BackburnerObject
- Defined in:
- lib/backburner/backburner_object.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(handler, client) ⇒ BackburnerObject
constructor
A new instance of BackburnerObject.
- #method_missing(name, *args) ⇒ Object
- #reload ⇒ Object
Constructor Details
#initialize(handler, client) ⇒ BackburnerObject
Returns a new instance of BackburnerObject.
11 12 13 14 15 |
# File 'lib/backburner/backburner_object.rb', line 11 def initialize handler, client @handler = handler @client = client reload end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
7 8 9 |
# File 'lib/backburner/backburner_object.rb', line 7 def method_missing name, *args @data.search name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/backburner/backburner_object.rb', line 5 def client @client end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/backburner/backburner_object.rb', line 5 def data @data end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
5 6 7 |
# File 'lib/backburner/backburner_object.rb', line 5 def handler @handler end |
Instance Method Details
#reload ⇒ Object
17 18 19 |
# File 'lib/backburner/backburner_object.rb', line 17 def reload @data = reloader end |