Class: ZohoHub::Validations::BaseValidation
- Inherits:
-
Object
- Object
- ZohoHub::Validations::BaseValidation
- Defined in:
- lib/zoho_hub/validations/base_validation.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record, field) ⇒ BaseValidation
constructor
A new instance of BaseValidation.
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
#field ⇒ Object
Returns the value of attribute field.
6 7 8 |
# File 'lib/zoho_hub/validations/base_validation.rb', line 6 def field @field end |
#record ⇒ Object
Returns the value of attribute record.
6 7 8 |
# File 'lib/zoho_hub/validations/base_validation.rb', line 6 def record @record end |