Class: IPTC::MultipleHashItem

Inherits:
Object
  • Object
show all
Defined in:
lib/iptc/multiple_hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (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

#valueObject



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