Class: FMCache::Decoder::ValueDecoder::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/fmcache/decoder/value_decoder/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, p_id:, value:) ⇒ Item

Returns a new instance of Item.



5
6
7
8
9
# File 'lib/fmcache/decoder/value_decoder/item.rb', line 5

def initialize(id:, p_id:, value:)
  @id    = id
  @p_id  = p_id
  @value = value
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/fmcache/decoder/value_decoder/item.rb', line 11

def id
  @id
end

#p_idObject (readonly)

Returns the value of attribute p_id.



11
12
13
# File 'lib/fmcache/decoder/value_decoder/item.rb', line 11

def p_id
  @p_id
end

#valueObject (readonly)

Returns the value of attribute value.



11
12
13
# File 'lib/fmcache/decoder/value_decoder/item.rb', line 11

def value
  @value
end