Skip to contents

An R6 class that represents a Schedule

Super classes

Content -> Variant -> VariantSchedule

Public fields

schedule_data

The schedule data.

Methods

Inherited methods


VariantSchedule$new()

Initialize this schedule.

Usage

VariantSchedule$new(connect, content, key, schedule)

Arguments

connect

The Connect instance.

content

The Content instance.

key

The variant key.

schedule

The schedule data.


VariantSchedule$GET()

Perform an HTTP GET request of the named API path. Returns an object parsed from the HTTP response.

Usage

VariantSchedule$GET(path)

Arguments

path

API path.


VariantSchedule$POST()

Perform an HTTP POST request of the named API path. Returns an object parsed from the HTTP response.

Usage

VariantSchedule$POST(path, body)

Arguments

path

API path.

body

The HTTP payload.


VariantSchedule$DELETE()

Perform an HTTP DELETE request of the named API path. Returns the HTTP response object.

Usage

VariantSchedule$DELETE(path)

Arguments

path

API path.


VariantSchedule$set_schedule()

Set the schedule for this variant

Usage

VariantSchedule$set_schedule(...)

Arguments

...

Schedule fields.


VariantSchedule$is_empty()

Return if this variant has a schedule.

Usage

VariantSchedule$is_empty()


VariantSchedule$print()

Print this object.

Usage

VariantSchedule$print(...)

Arguments

...

Unused.


VariantSchedule$get_schedule()

Get the schedule data.

Usage

VariantSchedule$get_schedule()


VariantSchedule$get_schedule_remote()

Get and store the (remote) schedule data.

Usage

VariantSchedule$get_schedule_remote()


VariantSchedule$describe_schedule()

Description of the associated schedule.

Usage

VariantSchedule$describe_schedule()


VariantSchedule$clone()

The objects of this class are cloneable with this method.

Usage

VariantSchedule$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.