Class: GoogleI18n::ValidationRules

Inherits:
Object
  • Object
show all
Defined in:
lib/google_i18n/validation_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(country_code, country_name, address_format, address_latin_format, allowed_fields, required_fields, upper_fields, country_area_type, country_area_choices, city_type, city_choices, city_area_type, city_area_choices, postal_code_type, postal_code_matchers, postal_code_examples, postal_code_prefix) ⇒ ValidationRules

Returns a new instance of ValidationRules.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/google_i18n/validation_rules.rb', line 8

def initialize(country_code, country_name, address_format, address_latin_format, allowed_fields,
               required_fields, upper_fields, country_area_type, country_area_choices, city_type,
               city_choices, city_area_type, city_area_choices, postal_code_type, postal_code_matchers,
               postal_code_examples, postal_code_prefix)
  @country_code = country_code
  @country_name = country_name
  @address_format = address_format
  @address_latin_format = address_latin_format
  @allowed_fields = allowed_fields
  @required_fields = required_fields
  @upper_fields = upper_fields
  @country_area_type = country_area_type
  @country_area_choices = country_area_choices
  @city_type = city_type
  @city_choices = city_choices
  @city_area_type = city_area_type
  @city_area_choices = city_area_choices
  @postal_code_type = postal_code_type
  @postal_code_matchers = postal_code_matchers
  @postal_code_examples = postal_code_examples
  @postal_code_prefix = postal_code_prefix
end

Instance Attribute Details

#address_formatObject (readonly)

Returns the value of attribute address_format.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def address_format
  @address_format
end

#address_latin_formatObject (readonly)

Returns the value of attribute address_latin_format.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def address_latin_format
  @address_latin_format
end

#allowed_fieldsObject (readonly)

Returns the value of attribute allowed_fields.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def allowed_fields
  @allowed_fields
end

#city_area_choicesObject (readonly)

Returns the value of attribute city_area_choices.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def city_area_choices
  @city_area_choices
end

#city_area_typeObject (readonly)

Returns the value of attribute city_area_type.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def city_area_type
  @city_area_type
end

#city_choicesObject (readonly)

Returns the value of attribute city_choices.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def city_choices
  @city_choices
end

#city_typeObject (readonly)

Returns the value of attribute city_type.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def city_type
  @city_type
end

#country_area_choicesObject (readonly)

Returns the value of attribute country_area_choices.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def country_area_choices
  @country_area_choices
end

#country_area_typeObject (readonly)

Returns the value of attribute country_area_type.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def country_area_type
  @country_area_type
end

#country_codeObject (readonly)

Returns the value of attribute country_code.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def country_code
  @country_code
end

#country_nameObject (readonly)

Returns the value of attribute country_name.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def country_name
  @country_name
end

#postal_code_examplesObject (readonly)

Returns the value of attribute postal_code_examples.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def postal_code_examples
  @postal_code_examples
end

#postal_code_matchersObject (readonly)

Returns the value of attribute postal_code_matchers.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def postal_code_matchers
  @postal_code_matchers
end

#postal_code_prefixObject (readonly)

Returns the value of attribute postal_code_prefix.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def postal_code_prefix
  @postal_code_prefix
end

#postal_code_typeObject (readonly)

Returns the value of attribute postal_code_type.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def postal_code_type
  @postal_code_type
end

#required_fieldsObject (readonly)

Returns the value of attribute required_fields.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def required_fields
  @required_fields
end

#upper_fieldsObject (readonly)

Returns the value of attribute upper_fields.



3
4
5
# File 'lib/google_i18n/validation_rules.rb', line 3

def upper_fields
  @upper_fields
end