Module: Ccd::USRealmAddressADUSFIELDEDTemplate

Included in:
USRealmAddressADUSFIELDED
Defined in:
lib/ccd/templates/us_realm_address_adusfielded_template.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/ccd/templates/us_realm_address_adusfielded_template.rb', line 2

def self.included(base)
  base.class_eval do
    extend ::Ccd::Dsl
    
    # SHALL contain exactly one [1..1] city (CONF:7292).
    constraint 'city', {:cardinality=>"1..1"}
    
    # SHALL contain at least one and not more than 4 streetAddressLine (CONF:7291).
    constraint 'street_address_line', {:cardinality=>"1..4"}
  end
end