Sha256: e385f016dda6657c7c5f843300433d773a57457a5fce7beec0019f07b3699f42

Contents?: true

Size: 198 Bytes

Versions: 8

Compression:

Stored size: 198 Bytes

Contents

module Medie
  class Link
    
    # allows you to follow links by using restfulie
    def follow
      r = Restfulie.at(href)
      r = r.as(content_type) if content_type
      r
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 lib/restfulie/client/ext/link_ext.rb
restfulie-1.1.1 lib/restfulie/client/ext/link_ext.rb
restfulie-1.1.0 lib/restfulie/client/ext/link_ext.rb
restfulie-nosqlite-1.0.3 lib/restfulie/client/ext/link_ext.rb
restfulie-1.0.3 lib/restfulie/client/ext/link_ext.rb
restfulie-1.0.0 lib/restfulie/client/ext/link_ext.rb
restfulie-1.0.0.beta5 lib/restfulie/client/ext/link_ext.rb
restfulie-1.0.0.beta4 lib/restfulie/client/ext/link_ext.rb