class Basecamp3::Schedule
A model for Basecamp's Schedule
{github.com/basecamp/bc3-api/blob/master/sections/schedules.md#schedules For more information, see the official Basecamp3
API documentation for Schedules}
Attributes
created_at[RW]
entries_count[RW]
id[RW]
status[RW]
title[RW]
updated_at[RW]
Public Class Methods
find(bucket_id, id)
click to toggle source
Returns the schedule.
@param [Integer] bucket_id the id of the bucket @param [Integer] id the id of the schedule
@return [Basecamp3::Schedule]
# File lib/basecamp3/models/schedule.rb, line 28 def self.find(bucket_id, id) Basecamp3.request.get("/buckets/#{bucket_id}/schedules/#{id}", {}, Basecamp3::Schedule) end
Public Instance Methods
entries()
click to toggle source
Returns a list of related entries.
@return [Array<Basecamp3::ScheduleEntry>]
# File lib/basecamp3/models/schedule.rb, line 18 def entries @mapped_entries ||= Basecamp3::ScheduleEntry.all(bucket.id, id) end