VariantSchedule

VariantSchedule

Details

An R6 class that represents a Schedule

Super classes

connectapi::Content -> connectapi::Variant -> VariantSchedule

Public fields

schedule_data

The schedule data.

Methods

Inherited methods


Method 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.


Method 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.


Method 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.


Method DELETE()

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

Usage

VariantSchedule$DELETE(path)

Arguments

path

API path.


Method set_schedule()

Set the schedule for this variant

Usage

VariantSchedule$set_schedule(...)

Arguments

...

Schedule fields.


Method is_empty()

Return if this variant has a schedule.

Usage

VariantSchedule$is_empty()


Method print()

Print this object.

Usage

VariantSchedule$print(...)

Arguments

...

Unused.


Method get_schedule()

Get the schedule data.

Usage

VariantSchedule$get_schedule()


Method get_schedule_remote()

Get and store the (remote) schedule data.

Usage

VariantSchedule$get_schedule_remote()


Method describe_schedule()

Description of the associated schedule.

Usage

VariantSchedule$describe_schedule()


Method clone()

The objects of this class are cloneable with this method.

Usage

VariantSchedule$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.