Class: Seam::Resources::Device::Properties::OfflineTimeFrameOptions

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/seam/resources/device.rb

Defined Under Namespace

Classes: TimePairs

Instance Attribute Summary collapse

Attributes inherited from BaseResource

#client, #data

Instance Method Summary collapse

Methods inherited from BaseResource

#[], aliased_accessor, attribute_aliases, date_accessor, discriminated_by, #initialize, #inspect, load_from_response, resource_accessor, resource_accessors, resource_list_accessor, resource_list_accessors, #update_from_response

Constructor Details

This class inherits a constructor from Seam::Resources::BaseResource

Instance Attribute Details

#display_nameString

Label for this option. For a single-option device, the product name (for example, algoPIN or SmartPIN); for a multi-option device, a label that distinguishes it (for example, Hourly or Fixed start times).

Returns:

  • (String)


1321
1322
1323
# File 'lib/seam/resources/device.rb', line 1321

def display_name
  @display_name
end

#end_date_recurrence_ruleString?

iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.

Returns:

  • (String, nil)


1324
1325
1326
# File 'lib/seam/resources/device.rb', line 1324

def end_date_recurrence_rule
  @end_date_recurrence_rule
end

#matching_start_end_timeTrueClass?

When true, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with time_pairs.

Returns:

  • (TrueClass, nil)


1327
1328
1329
# File 'lib/seam/resources/device.rb', line 1327

def matching_start_end_time
  @matching_start_end_time
end

#max_durationString?

Maximum duration this option covers, as an ISO 8601 duration (for example, PT672H or P367D). Omitted when there is no maximum.

Returns:

  • (String, nil)


1330
1331
1332
# File 'lib/seam/resources/device.rb', line 1330

def max_duration
  @max_duration
end

#min_durationString?

Minimum duration this option covers, as an ISO 8601 duration (for example, PT1H or P29D). Omitted when there is no minimum.

Returns:

  • (String, nil)


1333
1334
1335
# File 'lib/seam/resources/device.rb', line 1333

def min_duration
  @min_duration
end

#start_date_recurrence_ruleString?

iCalendar recurrence rule (RRULE) that the start date must fall on (for example, FREQ=MONTHLY;BYDAY=1MO,3MO). Constrains which calendar dates are selectable, independent of the time-of-day rules.

Returns:

  • (String, nil)


1336
1337
1338
# File 'lib/seam/resources/device.rb', line 1336

def start_date_recurrence_rule
  @start_date_recurrence_rule
end

#time_zoneString?

IANA time zone for interpreting time_pairs and the date recurrence rules. Present only when the option fixes times or dates.

Returns:

  • (String, nil)


1339
1340
1341
# File 'lib/seam/resources/device.rb', line 1339

def time_zone
  @time_zone
end

Instance Method Details

#time_pairsArray<TimePairs>

Fixed start/end time pairings the caller chooses from. Mutually exclusive with matching_start_end_time.

Returns:



1318
# File 'lib/seam/resources/device.rb', line 1318

resource_list_accessor :time_pairs, TimePairs