Class: ScheduleExceptionsRepresenter

Inherits:
Roar::Decorator
  • Object
show all
Includes:
Roar::JSON::JSONAPI
Defined in:
app/representers/schedule_exceptions_representer.rb

Instance Method Summary collapse

Instance Method Details

#is_regularObject


27
28
29
# File 'app/representers/schedule_exceptions_representer.rb', line 27

def is_regular
  !represented.starts_at.present? && !represented.ends_at.present?
end

#typeObject


23
24
25
# File 'app/representers/schedule_exceptions_representer.rb', line 23

def type
  represented.exception_type.upcase
end