Class: Arpa::Validators::ResourceValidator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceValidator

Returns a new instance of ResourceValidator.



10
11
12
13
# File 'lib/arpa/validators/resource_validator.rb', line 10

def initialize(resource)
  @full_name = resource.full_name
  @name      = resource.name
end

Instance Attribute Details

#full_nameObject (readonly)

Returns the value of attribute full_name.



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

def full_name
  @full_name
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end