Class: ZohoHub::Validations::BaseValidation

Inherits:
Object
  • Object
show all
Defined in:
lib/zoho_hub/validations/base_validation.rb

Direct Known Subclasses

ValidateLength, ValidatePicklist

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record, field) ⇒ BaseValidation

Returns a new instance of BaseValidation.



8
9
10
11
# File 'lib/zoho_hub/validations/base_validation.rb', line 8

def initialize(record, field)
  @record = record
  @field = field
end

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



6
7
8
# File 'lib/zoho_hub/validations/base_validation.rb', line 6

def field
  @field
end

#recordObject

Returns the value of attribute record.



6
7
8
# File 'lib/zoho_hub/validations/base_validation.rb', line 6

def record
  @record
end