Class: IPTC::MultipleHashItem
- Inherits:
-
Object
- Object
- IPTC::MultipleHashItem
- Defined in:
- lib/iptc/multiple_hash.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(marker, key, value) ⇒ MultipleHashItem
constructor
A new instance of MultipleHashItem.
- #value ⇒ Object
- #value=(value) ⇒ Object
Constructor Details
#initialize(marker, key, value) ⇒ MultipleHashItem
Returns a new instance of MultipleHashItem.
48 49 50 51 |
# File 'lib/iptc/multiple_hash.rb', line 48 def initialize marker, key, value @marker = marker @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
47 48 49 |
# File 'lib/iptc/multiple_hash.rb', line 47 def key @key end |
Instance Method Details
#value ⇒ Object
55 56 57 |
# File 'lib/iptc/multiple_hash.rb', line 55 def value return @marker[@key] end |
#value=(value) ⇒ Object
52 53 54 |
# File 'lib/iptc/multiple_hash.rb', line 52 def value=(value) @marker[@key]=value end |