Module: Siren::Json::Object3
- Defined in:
- lib/siren/json.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
127 128 129 130 131 132 133 134 135 |
# File 'lib/siren/json.rb', line 127 def value pairs = [list.first] + list.others.elements.map { |e| e.key_value_pair } pairs.inject({}) do |hash, pair| hash[pair.string.value] = pair.value.value hash end rescue {} end |