class HyperDock::Resource::Root
Constants
- VERSION
Public Instance Methods
attributes()
click to toggle source
# File lib/hyperdock/resource/root.rb, line 8 def attributes { version: VERSION } end
links()
click to toggle source
# File lib/hyperdock/resource/root.rb, line 12 def links @links ||= { projects: { href: '/projects' }, project: { href: '/project/{project}', templated: true }, 'project:services' => { href: '/project/{project}/services', templated: true }, containers: { href: '/containers' }, container: { href: '/container/{container}', templated: true }, 'container:ports' => { href: '/container/{container}/ports', templated: true }, networks: { href: '/networks' }, network: { href: '/network/{network}', templated: true }, volumes: { href: '/volumes' }, volume: { href: '/volume/{volume}', templated: true } } end