class OnappMarket::Template

Represents an OnApp CP Template as defined in PRD - Connect CP - Phase 1

Constants

ID
TYPE

Attributes

api[RW]

API used to manage this resource

description[RW]

Description

label[RW]

Name

price[RW]

Price

resource_id[RW]

Resource id associated with template

source_id[RW]

id on the originating CP

template_id[RW]

The template id

type[R]

The resource type

Public Class Methods

new(hash = {}, type = nil) click to toggle source

Create a new template

# File lib/onapp_market/template.rb, line 33
def initialize(hash = {}, type = nil)
  super(hash, type)
  restrict :source_id, [:admin, :supplier, :ro_admin]
end