Class: Hitnmiss::Driver::Hit
- Inherits:
-
Object
- Object
- Hitnmiss::Driver::Hit
- Defined in:
- lib/hitnmiss/driver.rb
Instance Attribute Summary collapse
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#last_modified ⇒ Object
readonly
Returns the value of attribute last_modified.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, updated_at: nil, fingerprint: nil, last_modified: nil) ⇒ Hit
constructor
A new instance of Hit.
Constructor Details
#initialize(value, updated_at: nil, fingerprint: nil, last_modified: nil) ⇒ Hit
Returns a new instance of Hit.
6 7 8 9 10 11 12 |
# File 'lib/hitnmiss/driver.rb', line 6 def initialize(value, updated_at: nil, fingerprint: nil, last_modified: nil) @value = value @updated_at = updated_at @fingerprint = fingerprint @last_modified = last_modified end |
Instance Attribute Details
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
4 5 6 |
# File 'lib/hitnmiss/driver.rb', line 4 def fingerprint @fingerprint end |
#last_modified ⇒ Object (readonly)
Returns the value of attribute last_modified.
4 5 6 |
# File 'lib/hitnmiss/driver.rb', line 4 def last_modified @last_modified end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/hitnmiss/driver.rb', line 4 def updated_at @updated_at end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/hitnmiss/driver.rb', line 4 def value @value end |