Class: GoogleI18n::ValidationRules
- Inherits:
-
Object
- Object
- GoogleI18n::ValidationRules
- Defined in:
- lib/google_i18n/validation_rules.rb
Instance Attribute Summary collapse
-
#address_format ⇒ Object
readonly
Returns the value of attribute address_format.
-
#address_latin_format ⇒ Object
readonly
Returns the value of attribute address_latin_format.
-
#allowed_fields ⇒ Object
readonly
Returns the value of attribute allowed_fields.
-
#city_area_choices ⇒ Object
readonly
Returns the value of attribute city_area_choices.
-
#city_area_type ⇒ Object
readonly
Returns the value of attribute city_area_type.
-
#city_choices ⇒ Object
readonly
Returns the value of attribute city_choices.
-
#city_type ⇒ Object
readonly
Returns the value of attribute city_type.
-
#country_area_choices ⇒ Object
readonly
Returns the value of attribute country_area_choices.
-
#country_area_type ⇒ Object
readonly
Returns the value of attribute country_area_type.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#country_name ⇒ Object
readonly
Returns the value of attribute country_name.
-
#postal_code_examples ⇒ Object
readonly
Returns the value of attribute postal_code_examples.
-
#postal_code_matchers ⇒ Object
readonly
Returns the value of attribute postal_code_matchers.
-
#postal_code_prefix ⇒ Object
readonly
Returns the value of attribute postal_code_prefix.
-
#postal_code_type ⇒ Object
readonly
Returns the value of attribute postal_code_type.
-
#required_fields ⇒ Object
readonly
Returns the value of attribute required_fields.
-
#upper_fields ⇒ Object
readonly
Returns the value of attribute upper_fields.
Instance Method Summary collapse
-
#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
constructor
A new instance of ValidationRules.
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_format ⇒ Object (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_format ⇒ Object (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_fields ⇒ Object (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_choices ⇒ Object (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_type ⇒ Object (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_choices ⇒ Object (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_type ⇒ Object (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_choices ⇒ Object (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_type ⇒ Object (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_code ⇒ Object (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_name ⇒ Object (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_examples ⇒ Object (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_matchers ⇒ Object (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_prefix ⇒ Object (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_type ⇒ Object (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_fields ⇒ Object (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_fields ⇒ Object (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 |