class HyperDock::Resource::Core
Public Instance Methods
_links()
click to toggle source
# File lib/hyperdock/resource/core.rb, line 17 def _links { self: { href: "/#{request.disp_path}" } } end
allowed_methods()
click to toggle source
# File lib/hyperdock/resource/core.rb, line 12 def allowed_methods ['GET', 'HEAD'] end
attributes()
click to toggle source
# File lib/hyperdock/resource/core.rb, line 27 def attributes {} end
links()
click to toggle source
# File lib/hyperdock/resource/core.rb, line 22 def links {} end
output()
click to toggle source
# File lib/hyperdock/resource/core.rb, line 32 def output { _links: _links.merge(links) }.merge(attributes) end