Class: Cachext::MissingRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/cachext/missing_record.rb,
lib/cachext/missing_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/cachext/missing_record.rb', line 2

def id
  @id
end

Instance Method Details

#missing?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/cachext/missing_record.rb', line 4

def missing?
  true
end

#present?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/cachext/missing_record.rb', line 8

def present?
  false
end