Class: Backburner::BackburnerObject
- Inherits:
-
Object
- Object
- Backburner::BackburnerObject
- Defined in:
- lib/backburner/backburner_object.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(handler, connection) ⇒ BackburnerObject
constructor
A new instance of BackburnerObject.
- #method_missing(name) ⇒ Object
- #reload ⇒ Object
Constructor Details
#initialize(handler, connection) ⇒ BackburnerObject
Returns a new instance of BackburnerObject.
11 12 13 14 15 |
# File 'lib/backburner/backburner_object.rb', line 11 def initialize handler, connection @handler = handler @connection = connection reload end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
7 8 9 |
# File 'lib/backburner/backburner_object.rb', line 7 def method_missing name @raw_data.try :search, name end |
Instance Attribute Details
#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 @raw_data = load_raw_data if respond_to?(:load_raw_data) end |