Sha256: 9eca7d2aacff2422d658b85d8fe7bce8e6b879cbefb78062a925c2ee6aea0e84
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
module Restfulie module Common module Converter module Xml class Links def initialize(links) links = [links] unless links.kind_of? Array links = [] unless links @links = links.map { |l| Restfulie::Common::Converter::Xml::Link.new(l) } end def method_missing(sym, *args) @links.find do |link| link.rel == sym.to_s end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulie-1.0.0.beta1 | lib/restfulie/common/converter/xml/links.rb |
restfulie-0.1.0.beta1 | lib/restfulie/common/converter/xml/links.rb |