Class: FMCache::Decoder::ValueDecoder::Item
- Inherits:
-
Object
- Object
- FMCache::Decoder::ValueDecoder::Item
- Defined in:
- lib/fmcache/decoder/value_decoder/item.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#p_id ⇒ Object
readonly
Returns the value of attribute p_id.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(id:, p_id:, value:) ⇒ Item
constructor
A new instance of Item.
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
#id ⇒ Object (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_id ⇒ Object (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 |
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/fmcache/decoder/value_decoder/item.rb', line 11 def value @value end |