Class: ATDIS::Models::TorrensTitle

Inherits:
ATDIS::Model show all
Defined in:
lib/atdis/models/torrens_title.rb

Instance Attribute Summary

Attributes inherited from ATDIS::Model

#attributes, #attributes_before_type_cast, #json_left_overs, #json_load_error, #url

Instance Method Summary collapse

Methods inherited from ATDIS::Model

attribute_keys, attribute_names, cast, #initialize, interpret, #json_errors, #json_errors_in_children, #json_errors_local, #json_left_overs_is_empty, #json_loaded_correctly!, partition_by_used, read_json, read_url, #used_attribute?

Constructor Details

This class inherits a constructor from ATDIS::Model

Instance Method Details

#section_can_not_be_empty_stringObject



17
18
19
20
21
# File 'lib/atdis/models/torrens_title.rb', line 17

def section_can_not_be_empty_string
  if section == ""
    errors.add(:section, ATDIS::ErrorMessage.new("can't be blank", "4.3.3"))
  end
end