Module: Transcriber::Resource::Href::Response

Included in:
Transcriber::Resource::Href
Defined in:
lib/transcriber/resource/key/href/response.rb

Instance Method Summary collapse

Instance Method Details

#to_resource(parent) ⇒ Object



5
6
7
8
# File 'lib/transcriber/resource/key/href/response.rb', line 5

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