func (o Object) Resource() api.Resource {
	return o.res
}
Resource returns API resource the object is an instance of
package gen
import (
	"github.com/milosgajdos/kraph/pkg/api"
	"github.com/milosgajdos/kraph/pkg/uuid"
)
type Object struct {
	uid   uuid.UID
	name  string
	ns    string
	res   api.Resource
	links map[string]api.Link
}
func NewObject(uid uuid.UID, name, ns string, res api.Resource) *Object {
	return &Object{
		uid:   uid,
		res:   res,
		ns:    ns,
		name:  name,
		links: make(map[string]api.Link),
	}
}
func (o Object) UID() uuid.UID {
	return o.uid
}
func (o Object) Name() string {
	return o.name
}
func (o Object) Namespace() string {
	return o.ns
}