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