Class: PeakFlowUtils::Group

Inherits:
ApplicationRecord show all
Defined in:
lib/peak_flow_utils/models/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#at_groupObject



15
16
17
# File 'lib/peak_flow_utils/models/group.rb', line 15

def at_group
  @at_group ||= PeakFlowUtils::GroupService.find_by_handler_and_id(at_handler, identifier) # rubocop:disable Rails/DynamicFindBy
end

Instance Method Details

#at_handlerObject



11
12
13
# File 'lib/peak_flow_utils/models/group.rb', line 11

def at_handler
  @at_handler ||= handler.at_handler
end

#to_paramObject



19
20
21
# File 'lib/peak_flow_utils/models/group.rb', line 19

def to_param
  identifier
end