Class: CachePiece

Inherits:
Object
  • Object
show all
Defined in:
lib/vendra/domain/models/values/cache_piece.rb

Constant Summary collapse

VALUES =
[10, 50, 100, 500, 1000]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ CachePiece

Returns a new instance of CachePiece.



6
7
8
# File 'lib/vendra/domain/models/values/cache_piece.rb', line 6

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/vendra/domain/models/values/cache_piece.rb', line 4

def value
  @value
end