Sha256: 43525e0d486406bb80d890485eca396afbd066937e3675b529bdaa020318f369

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

# inject new behavior in Atom instances to enable easily access to link relationships.
module Restfulie
  module Common
    module Representation
      class Json
        class Link
          def follow
            r = Restfulie.at(href)
            r = r.as(type) if type
            r
          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/client/ext/json_ext.rb
restfulie-0.1.0.beta1 lib/restfulie/client/ext/json_ext.rb