Sha256: 08d712bc0469e1332a5bddd161dfd63f93105d407cd883e08f305e5305846b71

Contents?: true

Size: 285 Bytes

Versions: 22

Compression:

Stored size: 285 Bytes

Contents

module Transcriber
  class Resource
    module Response
      module Href
        def to_resource(parent)
          id_key = parent.class.id_key.name
          {name => "#{Transcriber.host}/#{parent.class.resource_name}/#{parent.send(id_key)}"}
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
transcriber-0.0.25 lib/transcriber/resource/response/href.rb
transcriber-0.0.24 lib/transcriber/resource/response/href.rb
transcriber-0.0.23 lib/transcriber/resource/response/href.rb
transcriber-0.0.22 lib/transcriber/resource/response/href.rb
transcriber-0.0.21 lib/transcriber/resource/response/href.rb
transcriber-0.0.20 lib/transcriber/resource/response/href.rb
transcriber-0.0.19 lib/transcriber/resource/response/href.rb
transcriber-0.0.18 lib/transcriber/resource/response/href.rb
transcriber-0.0.17 lib/transcriber/resource/response/href.rb
transcriber-0.0.16 lib/transcriber/resource/response/href.rb
transcriber-0.0.15 lib/transcriber/resource/response/href.rb
transcriber-0.0.14 lib/transcriber/resource/response/href.rb
transcriber-0.0.13 lib/transcriber/resource/response/href.rb
transcriber-0.0.12 lib/transcriber/resource/response/href.rb
transcriber-0.0.11 lib/transcriber/resource/response/href.rb
transcriber-0.0.10 lib/transcriber/resource/response/href.rb
transcriber-0.0.9 lib/transcriber/resource/response/href.rb
transcriber-0.0.8 lib/transcriber/resource/response/href.rb
transcriber-0.0.7 lib/transcriber/resource/response/href.rb
transcriber-0.0.6 lib/transcriber/resource/response/href.rb