Class: Anoubis::Sso::Client::Group

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/anoubis/sso/client/group.rb

Constant Summary collapse

VALID_IDENT_REGEX =
/\A[a-z]*\z/i

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#identString

Returns the group’s identifier. Identifier consists of lowercase alphabetical symbols.

Returns:

  • (String)

    the group’s identifier. Identifier consists of lowercase alphabetical symbols.



8
# File 'app/models/anoubis/sso/client/group.rb', line 8

validates :ident, length: { minimum: 3, maximum: 50 }, uniqueness: { case_sensitive: false }, format: { with: VALID_IDENT_REGEX }

Instance Method Details

#titleObject



12
13
14
# File 'app/models/anoubis/sso/client/group.rb', line 12

def title
  get_locale_field 'title_locale'
end

#title=(value) ⇒ Object



16
17
18
# File 'app/models/anoubis/sso/client/group.rb', line 16

def title=(value)
  self.set_locale_field 'title_locale', value
end