Class: Basecamp3::Schedule
- Includes:
- Concerns::Bucketable, Concerns::Creatorable
- Defined in:
- lib/basecamp3/models/schedule.rb
Overview
A model for Basecamp's Schedule
For more information, see the official Basecamp3 API documentation for Schedules
Constant Summary
Constants inherited from Model
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#entries_count ⇒ Object
Returns the value of attribute entries_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.find(bucket_id, id) ⇒ Basecamp3::Schedule
Returns the schedule.
Instance Method Summary collapse
-
#entries ⇒ Array<Basecamp3::ScheduleEntry>
Returns a list of related entries.
Methods included from Concerns::Bucketable
Methods included from Concerns::Creatorable
Methods inherited from Model
Constructor Details
This class inherits a constructor from Basecamp3::Model
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def created_at @created_at end |
#entries_count ⇒ Object
Returns the value of attribute entries_count
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def entries_count @entries_count end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def id @id end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def status @status end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
8 9 10 |
# File 'lib/basecamp3/models/schedule.rb', line 8 def updated_at @updated_at end |
Class Method Details
Instance Method Details
#entries ⇒ Array<Basecamp3::ScheduleEntry>
Returns a list of related entries.
18 19 20 |
# File 'lib/basecamp3/models/schedule.rb', line 18 def entries @mapped_entries ||= Basecamp3::ScheduleEntry.all(bucket.id, id) end |