Class: Hitnmiss::Driver::Hit

Inherits:
Object
  • Object
show all
Defined in:
lib/hitnmiss/driver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



4
5
6
# File 'lib/hitnmiss/driver.rb', line 4

def fingerprint
  @fingerprint
end

#last_modifiedObject (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_atObject (readonly)

Returns the value of attribute updated_at.



4
5
6
# File 'lib/hitnmiss/driver.rb', line 4

def updated_at
  @updated_at
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/hitnmiss/driver.rb', line 4

def value
  @value
end