Class: CallCache::CachedCall
- Inherits:
-
Object
- Object
- CallCache::CachedCall
- Defined in:
- lib/cached_call.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#function_call ⇒ Object
readonly
Returns the value of attribute function_call.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#return_val ⇒ Object
readonly
Returns the value of attribute return_val.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(return_val, function_call, *parameters) ⇒ CachedCall
constructor
A new instance of CachedCall.
Constructor Details
#initialize(return_val, function_call, *parameters) ⇒ CachedCall
Returns a new instance of CachedCall.
26 27 28 29 30 31 |
# File 'lib/cached_call.rb', line 26 def initialize( return_val, function_call, *parameters ) @created_at = Time.now @return_val = return_val @function_call = function_call @parameters = parameters end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
24 25 26 |
# File 'lib/cached_call.rb', line 24 def created_at @created_at end |
#function_call ⇒ Object (readonly)
Returns the value of attribute function_call.
22 23 24 |
# File 'lib/cached_call.rb', line 22 def function_call @function_call end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
23 24 25 |
# File 'lib/cached_call.rb', line 23 def parameters @parameters end |
#return_val ⇒ Object (readonly)
Returns the value of attribute return_val.
21 22 23 |
# File 'lib/cached_call.rb', line 21 def return_val @return_val end |
Instance Method Details
#id ⇒ Object
33 34 35 |
# File 'lib/cached_call.rb', line 33 def id CallCache.get_id( @function_call, *@parameters) end |