Sha256: d8198d388187bb6765869ec830dfcdd321dfe269fb2f3205fcf95b140356d0a2

Contents?: true

Size: 255 Bytes

Versions: 27

Compression:

Stored size: 255 Bytes

Contents

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rest_model-0.2.1 lib/rest_model/key/href/response.rb
rest_model-0.2.0 lib/rest_model/key/href/response.rb
rest_model-0.1.24 lib/rest_model/key/href/response.rb
rest_model-0.1.23 lib/rest_model/key/href/response.rb
rest_model-0.1.22 lib/rest_model/key/href/response.rb
rest_model-0.1.21 lib/rest_model/key/href/response.rb
rest_model-0.1.20 lib/rest_model/key/href/response.rb
rest_model-0.1.19 lib/rest_model/key/href/response.rb
rest_model-0.1.18 lib/rest_model/key/href/response.rb
rest_model-0.1.17 lib/rest_model/key/href/response.rb
rest_model-0.1.16 lib/rest_model/key/href/response.rb
rest_model-0.1.15 lib/rest_model/key/href/response.rb
rest_model-0.1.14 lib/rest_model/key/href/response.rb
rest_model-0.1.13 lib/rest_model/key/href/response.rb
rest_model-0.1.12 lib/rest_model/key/href/response.rb
rest_model-0.1.11 lib/rest_model/key/href/response.rb
rest_model-0.1.10 lib/rest_model/key/href/response.rb
rest_model-0.1.9 lib/rest_model/key/href/response.rb
rest_model-0.1.8 lib/rest_model/key/href/response.rb
rest_model-0.1.7 lib/rest_model/key/href/response.rb