class SBF::Client::ShaveSchedule

Attributes

end_time[RW]
id[RW]
is_published[RW]
number_of_seats[RW]
shave_duration_in_minutes[RW]
start_time[RW]
year[RW]

Public Instance Methods

owner?() click to toggle source
# File lib/stbaldricks/entities/shave_schedule.rb, line 64
def owner?
  @permissions.nil? ? false : @permissions.owner?
end
published?() click to toggle source
# File lib/stbaldricks/entities/shave_schedule.rb, line 52
def published?
  is_published
end
shavees_can_schedule_times?() click to toggle source
# File lib/stbaldricks/entities/shave_schedule.rb, line 56
def shavees_can_schedule_times?
  time_selection_permissions.shavees?
end
team_captains_can_schedule_times?() click to toggle source
# File lib/stbaldricks/entities/shave_schedule.rb, line 60
def team_captains_can_schedule_times?
  time_selection_permissions.team_captains?
end
update(with = {}) click to toggle source
# File lib/stbaldricks/entities/shave_schedule.rb, line 12
def update(with = {})
  endpoint.update(id, year, self, with)
end