Module: EventStore::HTTP::MediaTypes::Atom::Links
- Defined in:
- lib/event_store/http/media_types/atom/links.rb
Class Method Summary collapse
Class Method Details
.set(target, links) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/event_store/http/media_types/atom/links.rb', line 6 def self.set(target, links) links.each do |hash| uri = hash.fetch :uri relation = hash.fetch :relation target[relation.to_sym] = uri end end |