Class: Arpa::Validators::ProfileValidator

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/arpa/validators/profile_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile) ⇒ ProfileValidator

Returns a new instance of ProfileValidator.



11
12
13
14
15
# File 'lib/arpa/validators/profile_validator.rb', line 11

def initialize(profile)
  @name        = profile.name
  @description = profile.description
  @role_ids    = profile.role_ids
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/arpa/validators/profile_validator.rb', line 6

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/arpa/validators/profile_validator.rb', line 6

def name
  @name
end

#role_idsObject (readonly)

Returns the value of attribute role_ids.



6
7
8
# File 'lib/arpa/validators/profile_validator.rb', line 6

def role_ids
  @role_ids
end